feat(shortcodes): support body admonitions (#423)

This commit is contained in:
Óscar
2024-11-07 14:33:06 +01:00
committed by GitHub
parent e2c5c6e9b7
commit e8381d05cc
4 changed files with 55 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
{%- set type = type | default(value="info") -%}
{%- set title = title | default(value=type | upper) -%}
{%- set icon = icon | default(value=type) -%}
{%- set text = text | default(value=body) -%}
<div class="admonition {{ type }}">
<div class="admonition-icon admonition-icon-{{ icon }}"></div>