mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-08 17:23:15 -06:00
update + test markdown parsing
This commit is contained in:
parent
59c2c6cac2
commit
04b080303f
13 changed files with 108 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue