fix: cleaner spoiler text in comments
This commit is contained in:
parent
ca2409ef91
commit
a39db5ea93
6 changed files with 6 additions and 65 deletions
|
@ -44,7 +44,7 @@ class SpoilerPlugin : AbstractMarkwonPlugin() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private val RE = Pattern.compile("~!.+?!~")
|
||||
private val RE = Pattern.compile("\\|\\|.+?\\|\\|")
|
||||
private fun applySpoilerSpans(spannable: Spannable) {
|
||||
val text = spannable.toString()
|
||||
val matcher = RE.matcher(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue