From e1d923b860693e59638797c8d4639252b51d9cbb Mon Sep 17 00:00:00 2001 From: zwbetz-gh Date: Tue, 30 Mar 2021 00:17:25 -0500 Subject: fix issue with markdownify and p tag --- .../content/post/papercss-shortcodes/index.md | 42 ++++++++++++++++------ layouts/shortcodes/alert.html | 4 +-- layouts/shortcodes/background.html | 4 +-- layouts/shortcodes/border.html | 6 ++-- layouts/shortcodes/color.html | 4 +-- 5 files changed, 41 insertions(+), 19 deletions(-) diff --git a/exampleSite/content/post/papercss-shortcodes/index.md b/exampleSite/content/post/papercss-shortcodes/index.md index b279301..632f856 100644 --- a/exampleSite/content/post/papercss-shortcodes/index.md +++ b/exampleSite/content/post/papercss-shortcodes/index.md @@ -215,9 +215,9 @@ Alert-danger ## card -The `img` param accepts an [image page resource](https://gohugo.io/content-management/page-resources/) name. +The `img` param accepts an [image page resource](https://gohugo.io/content-management/page-resources/) name. -The `command` and `options` params accept [image processing](https://gohugo.io/content-management/image-processing/#readout) args. +The `command` and `options` params accept [image processing](https://gohugo.io/content-management/image-processing/#readout) args. Required params: `img`, `command`, `options`. @@ -247,38 +247,60 @@ text="The Sun is the star at the center of the Solar System. It is a nearly perf ``` {{}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{}} {{}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{}} {{}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{}} {{}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{}}

Example badge {{}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{}}

``` {{< border >}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{< /border >}} +
+ {{< color "success" >}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{< /color >}} +
+ {{< background "success" >}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{< /background >}} +
+ {{< alert "success" >}} -[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_ +* Testing GitHub issue +* **bold** +* _italic_ {{< /alert >}}

Example badge {{< badge "success" >}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{< /badge >}}

diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html index 0522ebb..e1e4437 100644 --- a/layouts/shortcodes/alert.html +++ b/layouts/shortcodes/alert.html @@ -1,3 +1,3 @@ -

+

{{ .Inner | markdownify }} -

\ No newline at end of file +
diff --git a/layouts/shortcodes/background.html b/layouts/shortcodes/background.html index 5d06c3c..4a1cddb 100644 --- a/layouts/shortcodes/background.html +++ b/layouts/shortcodes/background.html @@ -1,3 +1,3 @@ -

+

{{ .Inner | markdownify }} -

\ No newline at end of file +
diff --git a/layouts/shortcodes/border.html b/layouts/shortcodes/border.html index 2b4accd..b72bb84 100644 --- a/layouts/shortcodes/border.html +++ b/layouts/shortcodes/border.html @@ -11,7 +11,7 @@ {{ end }}
-

+

{{ .Inner | markdownify }} -

-
\ No newline at end of file +
+ diff --git a/layouts/shortcodes/color.html b/layouts/shortcodes/color.html index 637f336..d0bba5e 100644 --- a/layouts/shortcodes/color.html +++ b/layouts/shortcodes/color.html @@ -1,3 +1,3 @@ -

+

{{ .Inner | markdownify }} -

\ No newline at end of file +
-- cgit v1.2.3