commit 20a7ce7c1bf60709baf270398370e41162222d87
parent 8cd4492407ad16db3a7ae1009130ad111dd7c714
Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Fri, 14 Jan 2022 19:29:39 -0800
Do not render hl_style as an HTML attribute
Fixes #9390
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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,
}
)