summaryrefslogtreecommitdiff
path: root/perl/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:49 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:49 +0200
commitf976a12695a9dc59a488d40ebb93f14b48d14d17 (patch)
treecd76d2b9a1e3f54933803de7a1f0c0f7a16f8270 /perl/IkiWiki/Plugin
parent1352bd08de820226b88954c9f33e3905b4912e86 (diff)
parent16a923e1ee880ef3dfb6e563e7c25a44a8fbcce8 (diff)
Merge branch '_nb' into allinone-nb
Diffstat (limited to 'perl/IkiWiki/Plugin')
-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;