Do not render hl_style as an HTML attribute
authorJoe Mooring <joe.mooring@veriphor.com>
Sat, 15 Jan 2022 03:29:39 +0000 (19:29 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 16 Jan 2022 16:09:18 +0000 (17:09 +0100)
Fixes #9390

markup/goldmark/render_hooks.go

index 0e942e6f57ad3c6fb15091540ad92dec6aa49c25..9e9ca197678c7e25eb67da8cccd74403136f3879 100644 (file)
@@ -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,
        }
 )