Merge pull request #1347 from davotoula/use-updated-markdown-to-sanitise-url-labels

Use new version of Markdown to sanitise url labels from # and @
This commit is contained in:
Vitor Pamplona
2025-05-08 10:55:33 -04:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
@@ -80,6 +80,10 @@ class MarkdownMediaRenderer(
false
}
override fun shouldSanitizeUriLabel(): Boolean = true
override fun sanitizeUriLabel(label: String): String = label.filterNot { it == '#' || it == '@' }
override fun renderImage(
title: String?,
uri: String,
+1 -1
View File
@@ -31,7 +31,7 @@ languageId = "17.0.6"
lazysodiumAndroid = "5.1.0"
lifecycleRuntimeKtx = "2.8.7"
lightcompressor = "1.3.2"
markdown = "077a2cde64"
markdown = "e1151c8"
media3 = "1.6.1"
mockk = "1.14.2"
kotlinx-coroutines-test = "1.10.2"