Signed-off-by: Seongmin Lee boltlessengineer@proton.me
+7
-1
appview/pages/markup/markdown.go
+7
-1
appview/pages/markup/markdown.go
······
······
+135
appview/pages/markup/markdown_at_extension.go
+135
appview/pages/markup/markdown_at_extension.go
···
···+func (r *atHtmlRenderer) renderAt(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
+3
appview/pages/markup/sanitizer.go
+3
appview/pages/markup/sanitizer.go
···policy.AllowAttrs("class").Matching(regexp.MustCompile(`heading`)).OnElements("h1", "h2", "h3", "h4", "h5", "h6", "h7", "h8")policy.AllowAttrs("class").Matching(regexp.MustCompile(strings.Join(slices.Collect(maps.Values(chroma.StandardTypes)), "|"))).OnElements("span")
···policy.AllowAttrs("class").Matching(regexp.MustCompile(`heading`)).OnElements("h1", "h2", "h3", "h4", "h5", "h6", "h7", "h8")policy.AllowAttrs("class").Matching(regexp.MustCompile(strings.Join(slices.Collect(maps.Values(chroma.StandardTypes)), "|"))).OnElements("span")