From 05a730e0530c0a892f5ce7f4f1a4495f1ca2475c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 4 Oct 2010 16:50:44 +0200 Subject: Fix fix to make space after hash optional in plugin h1title. --- IkiWiki/Plugin/h1title.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/h1title.pm b/IkiWiki/Plugin/h1title.pm index 0f4dce3..2d5d05f 100644 --- a/IkiWiki/Plugin/h1title.pm +++ b/IkiWiki/Plugin/h1title.pm @@ -15,7 +15,7 @@ sub filter(@) { my $page = $params{page}; my $content = $params{content}; - if ($content =~ s/^\#[ \t]*(.*?)[ \t]*\#*\n//) { + if ($content =~ s/^\#(?=>[^#])[ \t]*(.*?)[ \t]*\#*\n//) { $pagestate{$page}{meta}{title} = $1; } return $content; -- cgit v1.2.3