diff --git a/CHANGELOG.md b/CHANGELOG.md index 71fa54c..3f5c792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,4 @@ * BUGFIX * fix mermaid default font +* ENHANCEMENT + * add surrounding div with class `gdoc-include` to include shortcode diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html index 8c6f786..17540da 100644 --- a/layouts/shortcodes/include.html +++ b/layouts/shortcodes/include.html @@ -1,4 +1,5 @@ {{$file := .Get "file"}} +
{{- if eq (.Get "markdown") "true" -}} {{- $file | readFile | markdownify -}} {{- else if (.Get "language") -}} @@ -6,3 +7,4 @@ {{- else -}} {{ $file | readFile | safeHTML }} {{- end -}} +