From a1bb65ef49d1373f224e228e67112a675b390720 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 20 Jan 2021 12:00:57 +0200 Subject: [PATCH] Tweak scss-docs shortcode Should work now with indented start/end capture statements --- site/layouts/shortcodes/scss-docs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/layouts/shortcodes/scss-docs.html b/site/layouts/shortcodes/scss-docs.html index 4a525e4ded..16a906e777 100644 --- a/site/layouts/shortcodes/scss-docs.html +++ b/site/layouts/shortcodes/scss-docs.html @@ -13,7 +13,7 @@ {{- $strip_default := .Get "strip-default" | default "true" -}} {{- $start := printf "// scss-docs-start %s\n" $name -}} -{{- $end := printf "\n// scss-docs-end %s" $name -}} +{{- $end := printf "// scss-docs-end %s" $name -}} {{- $regex := printf "%s(.|\n)*%s" $start $end -}} {{- $css := readFile $file -}}