- commit
- 907e5e8
- parent
- 0061c96
- author
- Eric Bower
- date
- 2022-08-08 03:13:05 +0000 UTC
fix(prose): regression where syntax highlighting was broken bluemonday strips all classes so we had to allow classes.
1 files changed,
+1,
-0
+1,
-0
1@@ -127,6 +127,7 @@ func ParseText(text string) (*ParsedText, error) {
2 return &parsed, err
3 }
4
5+ policy.AllowStyling()
6 parsed.Html = policy.Sanitize(buf.String())
7 metaData := meta.Get(context)
8 parsed.MetaData.Title = toString(metaData["title"])