~erock/pico

907e5e8ddb483f023b01f24dd5ec1c74f7d1fc0a — Eric Bower a month ago 0061c96
fix(prose): regression where syntax highlighting was broken

bluemonday strips all classes so we had to allow classes.
1 files changed, 1 insertions(+), 0 deletions(-)

M prose/parser.go
M prose/parser.go => prose/parser.go +1 -0
@@ 127,6 127,7 @@ func ParseText(text string) (*ParsedText, error) {
		return &parsed, err
	}

	policy.AllowStyling()
	parsed.Html = policy.Sanitize(buf.String())
	metaData := meta.Get(context)
	parsed.MetaData.Title = toString(metaData["title"])