summaryrefslogtreecommitdiff
path: root/perl/IkiWiki
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
commitfffae51d763a33da26403000e9de3b736f6ce4ff (patch)
tree533c1c8fca381905e2437764d2446aa690f6ef2c /perl/IkiWiki
parent05dedbfcabf497db60040227cc3ef542e95c1cfd (diff)
parent391dd3b9bb3ba529aaf69157690b45192df5c95b (diff)
Merge branch '_da' into da
Diffstat (limited to 'perl/IkiWiki')
-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;