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:
+4
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user