aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup/goldmark
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2022-01-14 19:29:39 -0800
committerBjørn Erik Pedersen <[email protected]>2022-01-16 17:09:18 +0100
commit20a7ce7c1bf60709baf270398370e41162222d87 (patch)
tree2e5c3c9ac45694a0284c1b859bf987a6784313ef /markup/goldmark
parent8cd4492407ad16db3a7ae1009130ad111dd7c714 (diff)
downloadhugo-20a7ce7c1bf60709baf270398370e41162222d87.tar.gz
hugo-20a7ce7c1bf60709baf270398370e41162222d87.zip
Do not render hl_style as an HTML attribute
Fixes #9390
Diffstat (limited to 'markup/goldmark')
-rw-r--r--markup/goldmark/render_hooks.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/markup/goldmark/render_hooks.go b/markup/goldmark/render_hooks.go
index 0e942e6f5..9e9ca1976 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,
}
)