From ae30c7d3b85e38ed30866326c412946dd50bfa78 Mon Sep 17 00:00:00 2001 From: Sidharth R Date: Mon, 25 Oct 2021 19:02:09 +0530 Subject: =?UTF-8?q?=E2=9E=95=20Add=20support=20for=20markdown=20within=20n?= =?UTF-8?q?otes=20&=20warnings=20(#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/post/cupper-shortcodes/index.md | 8 ++++---- layouts/shortcodes/note.html | 2 +- layouts/shortcodes/warning.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/post/cupper-shortcodes/index.md b/exampleSite/content/post/cupper-shortcodes/index.md index c30eab6..94162e2 100644 --- a/exampleSite/content/post/cupper-shortcodes/index.md +++ b/exampleSite/content/post/cupper-shortcodes/index.md @@ -21,24 +21,24 @@ Even a happy life cannot be without a measure of darkness, and the word happy wo ``` {{}} -This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical. +This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical. You can also *include* **markdown** stuffs like `code`. {{}} ``` {{< note >}} -This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical. +This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical. You can also *include* **markdown** stuffs like `code`. {{< /note >}} ## warning note ``` {{}} -This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong. +This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong. You can also *include* **markdown** stuffs like `code`. {{}} ``` {{< warning >}} -This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong. +This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong. You can also *include* **markdown** stuffs like `code`. {{< /warning >}} ## cmd 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 @@ - {{ .Inner }} + {{ .Inner | markdownify }} 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 @@ - {{ .Inner }} + {{ .Inner | markdownify }} -- cgit v1.2.3