Exclude event attributes when rendering markdown

Closes #9463
This commit is contained in:
Joe Mooring
2022-02-03 16:03:25 -08:00
committed by Bjørn Erik Pedersen
parent 54f8d8a70a
commit f7bc4cc505
3 changed files with 64 additions and 1 deletions

View File

@@ -161,7 +161,8 @@ func renderAttributes(w util.BufWriter, skipClass bool, attributes ...ast.Attrib
continue
}
if attributeExcludes[string(attr.Name)] {
a := strings.ToLower(string(attr.Name))
if attributeExcludes[a] || strings.HasPrefix(a, "on") {
continue
}