mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:32:25 -05:00
[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:
parent
c3b6a5b0f9
commit
59be7466f3
2 changed files with 23 additions and 20 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue