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 | 865ad9410cc14da8ddfec027ebf9d768b4ca4546 (patch) | |
tree | fb86fe629d85e7112b5a3f326e02e10f8c212722 | |
parent | 4d383d498c879c876be748aa0671335dfca1a606 (diff) | |
parent | 3b8f3f44ceb3f8f93671f201018dd5ae515932d0 (diff) |
Merge branch 'master' into wian
-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; |