prevent karax from inserting whitespaces to fix wrapping

This commit is contained in:
HookedBehemoth 2022-06-29 01:29:25 +02:00
parent ec8f740c14
commit 867e50f308
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article):
var last = 0
for er in articleParagraph.entityRanges:
# prevent karax from inserting whitespaces to fix wrapping
result.add text ""
# flush remaining text
if er.offset > last:
result.add verbatim text.runeSubStr(last, er.offset - last).replaceHashtagsAndMentions