summaryrefslogtreecommitdiff
path: root/perl/IkiWiki/Plugin/h1title.pm
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:44 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:44 +0200
commit3b8f3f44ceb3f8f93671f201018dd5ae515932d0 (patch)
tree8deb12a9c64b3fa12134712c4b5abfc690cdcdd2 /perl/IkiWiki/Plugin/h1title.pm
parentd069a87a00e34f77748ed09f497bdf06f5fe906d (diff)
Fix fix to make space after hash optional in plugin h1title.
Diffstat (limited to 'perl/IkiWiki/Plugin/h1title.pm')
-rw-r--r--perl/IkiWiki/Plugin/h1title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/IkiWiki/Plugin/h1title.pm b/perl/IkiWiki/Plugin/h1title.pm
index 0f4dce3..2d5d05f 100644
--- a/perl/IkiWiki/Plugin/h1title.pm
+++ b/perl/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;