2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Tweak scss-docs shortcode

Should work now with indented start/end capture statements
This commit is contained in:
XhmikosR
2021-01-20 12:00:57 +02:00
parent 88be1ce502
commit a1bb65ef49
+1 -1
View File
@@ -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 -}}