diff options
author | 2022-07-19 10:41:16 +0200 | |
---|---|---|
committer | 2022-07-19 10:41:16 +0200 | |
commit | 59be7466f365266bb643e2f5b6b9ce2c4701b945 (patch) | |
tree | ba15b2019a0bb9c5fda7fcb275a0473d773e4a99 /internal/text/markdown.go | |
parent | [feature] Implement `cache-control` and etags for static assets (#711) (diff) | |
download | gotosocial-59be7466f365266bb643e2f5b6b9ce2c4701b945.tar.xz |
[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!
Diffstat (limited to 'internal/text/markdown.go')
-rw-r--r-- | internal/text/markdown.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/text/markdown.go b/internal/text/markdown.go index be094afd2..01238954f 100644 --- a/internal/text/markdown.go +++ b/internal/text/markdown.go @@ -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) } |