notes: don't replace text in links

This commit is contained in:
HookedBehemoth 2022-06-29 01:14:15 +02:00
parent f87c91780c
commit ec8f740c14

View file

@ -57,7 +57,7 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article):
case entity.entityType
of ArticleEntityType.link:
let link = buildHtml(a(href=entity.url)):
verbatim text.runeSubStr(er.offset, er.length).replaceHashtagsAndMentions
text text.runeSubStr(er.offset, er.length)
result.add link
of ArticleEntityType.media:
for id in entity.mediaIds: