Mangadex markdown cleanup removes --- only with newline (#7282)
* Update MangaDexHelper.kt * Update build.gradle * Update build.gradle
This commit is contained in:
parent
1d24591d65
commit
6e7fcda20c
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'MangaDex'
|
extName = 'MangaDex'
|
||||||
extClass = '.MangaDexFactory'
|
extClass = '.MangaDexFactory'
|
||||||
extVersionCode = 198
|
extVersionCode = 199
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user