diff options
| -rw-r--r-- | layouts/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/single.gmi b/layouts/single.gmi index 2cf53a4..29df881 100644 --- a/layouts/single.gmi +++ b/layouts/single.gmi @@ -21,7 +21,7 @@ {{/* split text into chunks, with each chunk containing 3 parts: above, within, and below preformatted text */ -}} {{/* the regex matching below the preformatted text matches exactly once in the entire text */ -}} -{{ $chunks := findRESubmatch `(?sm)(?:(.+?)(^\x60{3}[^\x60].*?^\x60{3}$))|(.+$)` $content -}} +{{ $chunks := findRESubmatch `(?sm)(?:(.*?)(^\x60{3}[^\x60].*?^\x60{3}$))|(.+$)` $content -}} {{ $ref_index := 0 -}} |
