From 99b5c9f1042a0c12115d7ecbe0c2b21adaf50829 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Thu, 7 Mar 2024 16:10:51 +0100 Subject: [PATCH] Remove markStyleColor check --- .../kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt b/aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt index 477ca8880..9134c81af 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt @@ -129,7 +129,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h if (!editor.selectedStyles.contains(AztecTextFormat.FORMAT_MARK) && start >= 1 && end > 1 ) { val previousMarkSpan = editableText.getSpans(start - 1, start, MarkSpan::class.java) val markSpan = editableText.getSpans(start, end, MarkSpan::class.java) - if (markSpan.isNotEmpty() || (previousMarkSpan.isNotEmpty() && markStyleColor == null)) { + if (markSpan.isNotEmpty() || previousMarkSpan.isNotEmpty()) { removeInlineCssStyle(start, end) return }