mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 20:15:01 +00:00
Based on user request to parse both Markdown and nested HTML shortcodes (Figures) within Callout shortcode: https://discord.com/channels/722225264733716590/742863504515793149/813105748283883570 Uses `{{-` to unindent HTML so that Figure shortcode can be nested within a `{{%` Markdown shortcode, such as Callout, without the HTML being rendered as a Markdown code block. This way we utilise Hugo's HTML in Markdown approach (aka Goldmark `unsafe`) rather than separating HTML from Markdown. Previously, Figure could only be nested within a `{{<` HTML shortcode.
6 lines
105 B
HTML
6 lines
105 B
HTML
<div class="alert alert-{{ .Get 0 }}">
|
|
<div>
|
|
{{ .Inner | markdownify | emojify }}
|
|
</div>
|
|
</div>
|