From c9d0dc8fb2cfc0f02e96e52c83ac7654916465f4 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 11 Nov 2023 20:55:58 -0800 Subject: [PATCH] Update Markdownify.md --- content/en/functions/transform/Markdownify.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/en/functions/transform/Markdownify.md b/content/en/functions/transform/Markdownify.md index d08fc7507..8fb1e48ce 100644 --- a/content/en/functions/transform/Markdownify.md +++ b/content/en/functions/transform/Markdownify.md @@ -14,15 +14,13 @@ aliases: [/functions/markdownify] --- ```go-html-template -{{ .Title | markdownify }} +

{{ .Title | markdownify }}

``` If the resulting HTML is a single paragraph, Hugo removes the wrapping `p` tags to produce inline HTML as required per the example above. To keep the wrapping `p` tags for a single paragraph, use the [`RenderString`] method on the `Page` object, setting the `display` option to `block`. -If the resulting HTML is two or more paragraphs, Hugo leaves the wrapping `p` tags in place. - [`RenderString`]: /methods/page/renderstring/ {{% note %}}