diff --git a/internal/text/markdown.go b/internal/text/markdown.go index a26182598..e4b633e75 100644 --- a/internal/text/markdown.go +++ b/internal/text/markdown.go @@ -141,6 +141,7 @@ func (f *Formatter) fromMarkdown( extension.NewLinkify( extension.WithLinkifyURLRegexp(regexes.URLLike), ), + extension.Footnote, extension.Strikethrough, ), ) diff --git a/internal/text/markdown_test.go b/internal/text/markdown_test.go index 5048fab87..347ca2928 100644 --- a/internal/text/markdown_test.go +++ b/internal/text/markdown_test.go @@ -61,7 +61,7 @@ const ( mdCodeBlockWithNewlines = "some code coming up\n\n```\n\n\n\n```\nthat was some code" mdCodeBlockWithNewlinesExpected = "
some code coming up
\n\n\nthat was some code
" mdWithFootnote = "fox mulder,fbi.[^1]\n\n[^1]: federated bureau of investigation" - mdWithFootnoteExpected = "fox mulder,fbi.[^1]
[^1]: federated bureau of investigation
" + mdWithFootnoteExpected = "fox mulder,fbi.1
federated bureau of investigation ↩︎
get ready, there's a block quote coming:
" mdHashtagAndCodeBlock = "#Hashtag\n\n```\n#Hashtag\n```"line1
line2line3