From 20a7ce7c1bf60709baf270398370e41162222d87 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 14 Jan 2022 19:29:39 -0800 Subject: [PATCH] Do not render hl_style as an HTML attribute Fixes #9390 --- markup/goldmark/render_hooks.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, } )