From 6925cda30649e0aebc9a5d258afe72c60e784274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Thu, 20 Feb 2020 12:00:40 +0100 Subject: [PATCH] Handle corner case with rendering text as code in URL Without `| safeHTML` for `[`hrefTargetBlank`](http://example.com/hugo-docs) doesn't work` links text it is rendered verbatimly as `hrefTargetBlank`. After my change it would use default styling for code. --- content/en/getting-started/configuration-markup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/getting-started/configuration-markup.md b/content/en/getting-started/configuration-markup.md index c69bbb6ed..09816676a 100644 --- a/content/en/getting-started/configuration-markup.md +++ b/content/en/getting-started/configuration-markup.md @@ -134,7 +134,7 @@ PlainText Here is a code example for how the render-link.html template could look: {{< code file="layouts/_default/_markup/render-link.html" >}} -{{ .Text }} +{{ .Text | safeHTML }} {{< /code >}} #### Image Markdown example: