Signed-off-by: oppiliappan me@oppi.li
+3
appview/pages/markup/markdown.go
+3
appview/pages/markup/markdown.go
+1
appview/pages/markup/sanitizer.go
+1
appview/pages/markup/sanitizer.go
···
64
64
65
65
// for code blocks
66
66
policy.AllowAttrs("class").Matching(regexp.MustCompile(`chroma`)).OnElements("pre")
67
+
policy.AllowAttrs("class").Matching(regexp.MustCompile(`anchor|footnote-ref|footnote-backref`)).OnElements("a")
67
68
policy.AllowAttrs("class").Matching(regexp.MustCompile(strings.Join(slices.Collect(maps.Values(chroma.StandardTypes)), "|"))).OnElements("span")
68
69
69
70
// centering content