mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
Add an option to mdToHTML to strip links
This commit is contained in:
@@ -252,7 +252,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
|
||||
data.content = strings.ReplaceAll(data.content, placeholderTag, "nostr:"+nreplace)
|
||||
}
|
||||
if data.event.Kind == 30023 || data.event.Kind == 30024 {
|
||||
data.content = mdToHTML(data.content, data.templateId == TelegramInstantView)
|
||||
data.content = mdToHTML(data.content, data.templateId == TelegramInstantView, false)
|
||||
} else {
|
||||
// first we run basicFormatting, which turns URLs into their appropriate HTML tags
|
||||
data.content = basicFormatting(html.EscapeString(data.content), true, false, false)
|
||||
|
||||
Reference in New Issue
Block a user