diff --git a/utils.go b/utils.go index 5429007..9feb74b 100644 --- a/utils.go +++ b/utils.go @@ -335,20 +335,18 @@ func basicFormatting(input string, skipNostrEventLinks bool, usingTelegramInstan } imageReplacementTemplate := ` ` + videoReplacementTemplate := `` if usingTelegramInstantView { // telegram instant view doesn't like when there is an image inside a blockquote (like

) // so we use this custom thing to stop all blockquotes before the images, print the images then // start a new blockquote afterwards -- we do the same with the markdown renderer for

tags on mdToHtml imageReplacementTemplate = "" + imageReplacementTemplate + "

" + videoReplacementTemplate = "
" + videoReplacementTemplate + "
" } lines := strings.Split(input, "\n") for i, line := range lines { - line = replaceURLsWithTags(line, - imageReplacementTemplate, - ``, - ) - + line = replaceURLsWithTags(line, imageReplacementTemplate, videoReplacementTemplate) line = replaceNostrURLsWithTags(nostrMatcher, line) lines[i] = line }