diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-30 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-30 00:00:00 +0000 |
commit | c9c7793c6e424d9bcf7567fb8eb4ab039fbaddb46c77dc096d5dd147c40b56bd (patch) | |
tree | 7c26f0c7a70eaa0cdb17830f9abdec1d8a67435823714f01e07cf5cfb99a0973 | |
parent | 3f3d34045942df3072660d830ee3d0b4ed65d5503f6034cbc4543c99de794fc4 (diff) |
Correct headings regex
Markdown headings with 4-6 number signs are flattened in gemtext and
thus shouldn't be excluded from whitespace corrections either.
-rw-r--r-- | layouts/_default/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 2f6505a..0a4c8b5 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -14,7 +14,7 @@ {{ $scratch := newScratch -}} {{/* if content begins with a heading, add an extra newline */ -}} -{{ if (findRE `(?)^#{1,3} ` $content) }} +{{ if (findRE `(?)^#{1,6} ` $content) }} {{ end -}} {{/* split text into chunks, with each chunk containing 3 parts: above, within, and below preformatted text */ -}} |