Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidharth R <ofw3210@gmail.com>2021-10-25 16:32:09 +0300
committerGitHub <noreply@github.com>2021-10-25 16:32:09 +0300
commitae30c7d3b85e38ed30866326c412946dd50bfa78 (patch)
tree89350e1d9e7d43265aa7243bad7dbdbef96dede4 /layouts
parentffdb78849edf02d5e6378fafe5b172150654901f (diff)
➕ Add support for markdown within notes & warnings (#64)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/note.html2
-rw-r--r--layouts/shortcodes/warning.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html
index 5671b72..6494910 100644
--- a/layouts/shortcodes/note.html
+++ b/layouts/shortcodes/note.html
@@ -3,6 +3,6 @@
<svg class="sign" aria-hidden="true" viewBox="0 0 41.667306 41.66729" focusable="false">
<use xlink:href="#info"></use>
</svg>
- {{ .Inner }}
+ {{ .Inner | markdownify }}
</div>
</aside>
diff --git a/layouts/shortcodes/warning.html b/layouts/shortcodes/warning.html
index 69d1bad..5ca7544 100644
--- a/layouts/shortcodes/warning.html
+++ b/layouts/shortcodes/warning.html
@@ -3,6 +3,6 @@
<svg class="sign" aria-hidden="true" viewBox="0 0 48.430474 41.646302" focusable="false">
<use xlink:href="#warning"></use>
</svg>
- {{ .Inner }}
+ {{ .Inner | markdownify }}
</div>
</aside>