From: Joe Mooring Date: Sat, 15 Jan 2022 03:29:39 +0000 (-0800) Subject: Do not render hl_style as an HTML attribute X-Git-Tag: v0.92.1~10 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=20a7ce7c1bf60709baf270398370e41162222d87;p=brevno-suite%2Fhugo Do not render hl_style as an HTML attribute Fixes #9390 --- diff --git a/markup/goldmark/render_hooks.go b/markup/goldmark/render_hooks.go index 0e942e6f..9e9ca197 100644 --- a/markup/goldmark/render_hooks.go +++ b/markup/goldmark/render_hooks.go @@ -148,8 +148,9 @@ var ( // Attributes with special meaning that does not make sense to render in HTML. attributeExcludes = map[string]bool{ - "linenos": true, "hl_lines": true, + "hl_style": true, + "linenos": true, "linenostart": true, } )