[bugfix] Markdown format fixes (#718)

* just sanitize markdown, don't minify or escape

* tidy tests, add one for inline code

* add another test, it works!
This commit is contained in:
tobi 2022-07-19 10:41:16 +02:00 committed by GitHub
commit 59be7466f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 20 deletions

View file

@ -37,5 +37,5 @@ func (f *formatter) FromMarkdown(ctx context.Context, md string, mentions []*gts
// format mentions nicely
content = f.ReplaceMentions(ctx, content, mentions)
return postformat(content)
return SanitizeHTML(content)
}