Signed-off-by: Seongmin Lee boltlessengineer@proton.me
ERROR
appview/pages/markup/markdown.go
ERROR
appview/pages/markup/markdown.go
Failed to calculate interdiff for this file.
ERROR
appview/pages/markup/markdown_at_extension.go
ERROR
appview/pages/markup/markdown_at_extension.go
Failed to calculate interdiff for this file.
NEW
appview/pages/markup/sanitizer.go
NEW
appview/pages/markup/sanitizer.go
···
77
77
policy.AllowAttrs("class").Matching(regexp.MustCompile(`heading`)).OnElements("h1", "h2", "h3", "h4", "h5", "h6", "h7", "h8")
78
78
policy.AllowAttrs("class").Matching(regexp.MustCompile(strings.Join(slices.Collect(maps.Values(chroma.StandardTypes)), "|"))).OnElements("span")
79
79
80
+
// at-mentions
81
+
policy.AllowAttrs("class").Matching(regexp.MustCompile(`mention`)).OnElements("a")
82
+
80
83
// centering content
81
84
policy.AllowElements("center")
82
85