Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/markup
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2022-01-15 06:29:39 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-01-16 19:09:18 +0300
commit20a7ce7c1bf60709baf270398370e41162222d87 (patch)
tree2e5c3c9ac45694a0284c1b859bf987a6784313ef /markup
parent8cd4492407ad16db3a7ae1009130ad111dd7c714 (diff)
Do not render hl_style as an HTML attribute
Fixes #9390
Diffstat (limited to 'markup')
-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,
}
)