Mangadex markdown cleanup removes --- only with newline (#7282)

* Update MangaDexHelper.kt

* Update build.gradle

* Update build.gradle
This commit is contained in:
spicemace 2025-02-03 19:04:17 -08:00 committed by Draff
parent 1d24591d65
commit 6e7fcda20c
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'MangaDex' extName = 'MangaDex'
extClass = '.MangaDexFactory' extClass = '.MangaDexFactory'
extVersionCode = 198 extVersionCode = 199
isNsfw = true isNsfw = true
} }

View File

@ -156,7 +156,7 @@ class MangaDexHelper(lang: String) {
*/ */
private fun String.removeEntitiesAndMarkdown(): String { private fun String.removeEntitiesAndMarkdown(): String {
return removeEntities() return removeEntities()
.substringBefore("---") .substringBefore("\n---")
.replace(markdownLinksRegex, "$1") .replace(markdownLinksRegex, "$1")
.replace(markdownItalicBoldRegex, "$1") .replace(markdownItalicBoldRegex, "$1")
.replace(markdownItalicRegex, "$1") .replace(markdownItalicRegex, "$1")