summaryrefslogtreecommitdiff
path: root/internal/text/formatter.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-27 14:27:53 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-27 14:27:53 +0200
commit00d38855d416e834c2657271823e0ee95397d7ba (patch)
treec87d85e5c5c0be0c002e2757c63fe26253e5467a /internal/text/formatter.go
parent[performance] Update indexes that were causing slow db queries (#855) (diff)
downloadgotosocial-00d38855d416e834c2657271823e0ee95397d7ba.tar.xz
[bugfix] Fix emphasis being added to emoji shortcodes with markdown parsing (#856)v0.5.0
* fix underscored emoji shortcodes being emphasized * remove footnote parsing from md
Diffstat (limited to 'internal/text/formatter.go')
-rw-r--r--internal/text/formatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/text/formatter.go b/internal/text/formatter.go
index 3970d0c72..5daec5c82 100644
--- a/internal/text/formatter.go
+++ b/internal/text/formatter.go
@@ -30,7 +30,7 @@ type Formatter interface {
// FromPlain parses an HTML text from a plaintext.
FromPlain(ctx context.Context, plain string, mentions []*gtsmodel.Mention, tags []*gtsmodel.Tag) string
// FromMarkdown parses an HTML text from a markdown-formatted text.
- FromMarkdown(ctx context.Context, md string, mentions []*gtsmodel.Mention, tags []*gtsmodel.Tag) string
+ FromMarkdown(ctx context.Context, md string, mentions []*gtsmodel.Mention, tags []*gtsmodel.Tag, emojis []*gtsmodel.Emoji) string
// ReplaceTags takes a piece of text and a slice of tags, and returns the same text with the tags nicely formatted as hrefs.
ReplaceTags(ctx context.Context, in string, tags []*gtsmodel.Tag) string