diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-10-04 16:50:48 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-10-04 16:50:48 +0200 |
commit | 190e7e22db0065f2c66618ff1e5ee505293af54f (patch) | |
tree | 5745e412618056ff0dabb3d981d9b118a67bb005 /perl/IkiWiki/Plugin/h1title.pm | |
parent | 223c0791ee5d07173ea186ee3f9e2d375fadcebd (diff) | |
parent | 16a923e1ee880ef3dfb6e563e7c25a44a8fbcce8 (diff) |
Merge branch '_nb' into nb
Diffstat (limited to 'perl/IkiWiki/Plugin/h1title.pm')
-rw-r--r-- | perl/IkiWiki/Plugin/h1title.pm | 2 |
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; |