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
commit62808e182fdfb6faad4268c8b11365e86b13d4e2 (patch)
tree0704f629f6d24c2cc2ee221b76a988fd3c883246 /perl/IkiWiki/Plugin
parent095114485cc55156760c970290cfd882a73ba977 (diff)
parent736da934d7f288c0a5531fae9478750a19e18490 (diff)
Merge branch '_multilang' into allinone-multilang
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;