summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:48 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:48 +0200
commit7c26836c55b7486202b86b55f42c8b15be429d4b (patch)
tree1ba349c01f0d12dc3d860d692791ebf9fe829442
parentfaf870e3a5227e23dee7d652504b2b9f1c2d7981 (diff)
parentd1ac9f6a2e798553f3227d55721bd264e6169a81 (diff)
Merge branch '_scs' into scs
-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;