summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-04 16:50:44 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:47:52 +0200
commit05a730e0530c0a892f5ce7f4f1a4495f1ca2475c (patch)
tree43d35c400d1d2d56dd6590141979f1ff44a99927
parent9201e3addcbadea30c7888d82043fbc9b0378bc2 (diff)
Fix fix to make space after hash optional in plugin h1title.
-rw-r--r--IkiWiki/Plugin/h1title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/h1title.pm b/IkiWiki/Plugin/h1title.pm
index 0f4dce3..2d5d05f 100644
--- a/IkiWiki/Plugin/h1title.pm
+++ b/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;