{{- /*
Usage: `example [args]`
`args` are optional and can be one of the following:
id: the `div`'s id - default: ""
class: any extra class(es) to be added to the `div` - default ""
show_preview: if the preview should be output in the HTML - default: `true`
show_markup: if the markup should be output in the HTML - default: `true`
*/ -}}
{{- $show_preview := .Get "show_preview" | default true -}}
{{- $show_markup := .Get "show_markup" | default true -}}
{{- $input := .Inner -}}
{{- if eq $show_preview true -}}
{{- $input -}}
{{- end -}}
{{- if eq $show_markup true -}}
{{- $.Scratch.Set "highlight_content" $input -}}
{{- if (strings.Contains $input `✂ï¸" -}}
{{- $modified_content = split $modified_content "✂ï¸" -}}
{{- if (strings.Contains $input `` -}}
{{- end -}}
{{- else -}}
{{- $.Scratch.Add "highlight_content" $content_chunk -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- highlight (trim ($.Scratch.Get "highlight_content") "\n") "html" "" -}}
{{- end -}}