Files
HugoBlox-kit/wowchemy/layouts/shortcodes/callout.html
T
George Cushen e27cbaca79 feat: enable Figure to be nested within a {{% Markdown shortcode
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.
2021-02-21 21:24:03 +00:00

6 lines
105 B
HTML

<div class="alert alert-{{ .Get 0 }}">
<div>
{{ .Inner | markdownify | emojify }}
</div>
</div>