diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-10-04 16:50:49 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-10-04 16:50:49 +0200 |
commit | f976a12695a9dc59a488d40ebb93f14b48d14d17 (patch) | |
tree | cd76d2b9a1e3f54933803de7a1f0c0f7a16f8270 /perl | |
parent | 1352bd08de820226b88954c9f33e3905b4912e86 (diff) | |
parent | 16a923e1ee880ef3dfb6e563e7c25a44a8fbcce8 (diff) |
Merge branch '_nb' into allinone-nb
Diffstat (limited to 'perl')
-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; |