update + test markdown parsing

This commit is contained in:
tsmethurst 2021-08-16 19:05:49 +02:00
commit 04b080303f
13 changed files with 108 additions and 25 deletions

View file

@ -27,7 +27,7 @@ func (f *formatter) FromMarkdown(md string, mentions []*gtsmodel.Mention, tags [
content := preformat(md)
// do the markdown parsing *first*
contentBytes := blackfriday.Run([]byte(md))
contentBytes := blackfriday.Run([]byte(content))
// format tags nicely
content = f.ReplaceTags(string(contentBytes), tags)