From 3501867959775c0ce2ba315f60c8e0b9ffd849b1 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 29 Apr 2024 20:48:01 -0500 Subject: [PATCH 1/2] improve gmi torchlight cleanup --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 7404ef6..d48ba07 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -18,7 +18,7 @@ {{- $content := $content | replaceRE "(?m:^`([^`]*)`$)" "```\n$1\n```\n" -}}{{/* convert single-line inline code to blocks */}} {{- $content := $content | replaceRE `\{\{%\snotice.*%\}\}` "<-- note -->" -}}{{/* convert hugo notices */}} {{- $content := $content | replaceRE `\{\{%\s/notice.*%\}\}` "<-- /note -->" -}} - {{- $content := $content | replaceRE `((\/\/)|#)\s*torchlight!.*\n` "" -}}{{/* remove torchlight markup */}} + {{- $content := $content | replaceRE `(?:(?: