Skip to content

Commit

Permalink
Tweak scss-docs shortcode
Browse files Browse the repository at this point in the history
Should work now with indented start/end capture statements
  • Loading branch information
XhmikosR committed Jan 28, 2021
1 parent 23cdd9d commit 67add99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/layouts/shortcodes/scss-docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 67add99

Please sign in to comment.