mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Fix indentation in highlight shortcode
This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra whitespace getting hightlighted. Fixes #4717
This commit is contained in:
1 parent
f562ff99db
commit
03ca7be5b8
1 file changed
+4
@@ -45,4 +45,8 @@ toc: false
|
|||||||
[markdownshortcode]: /content-management/shortcodes/#shortcodes-with-markdown
|
[markdownshortcode]: /content-management/shortcodes/#shortcodes-with-markdown
|
||||||
[shortcodes]: /templates/shortcode-templates/
|
[shortcodes]: /templates/shortcode-templates/
|
||||||
|
|
||||||
|
.InnerDeindent {{< new-in "0.100.0" >}}
|
||||||
|
: Gets the `.Inner` with any indentation removed. This is what's used in the built-in `{{</* highlight */>}}` shortcode.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user