Merge branch 'feature/markdown-enable-tags' into 'develop'

common api: enable tag linking in markdown mode

Closes #322

See merge request pleroma/pleroma!376
This commit is contained in:
kaniini 2018-10-14 20:42:23 +00:00
commit c93571b87e

View file

@ -126,6 +126,7 @@ def format_input(text, mentions, tags, "text/markdown") do
|> String.replace(~r/\r?\n/, "")
|> (&{[], &1}).()
|> Formatter.add_user_links(mentions)
|> Formatter.add_hashtag_links(tags)
|> Formatter.finalize()
end