Skip to content

Commit 2e1877f

Browse files
committed
added nested bold tags cleaner call before initial hash calculation
1 parent 5a5b3da commit 2e1877f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ import org.wordpress.aztec.spans.UnknownHtmlSpan
8787
import org.wordpress.aztec.toolbar.IAztecToolbar
8888
import org.wordpress.aztec.toolbar.ToolbarAction
8989
import org.wordpress.aztec.util.AztecLog
90+
import org.wordpress.aztec.util.CleaningUtils
9091
import org.wordpress.aztec.util.InstanceStateUtils
9192
import org.wordpress.aztec.util.SpanWrapper
9293
import org.wordpress.aztec.util.coerceToHtmlText
@@ -1015,7 +1016,8 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
10151016
val builder = SpannableStringBuilder()
10161017
val parser = AztecParser(plugins)
10171018

1018-
val cleanSource = Format.removeSourceEditorFormatting(source, isInCalypsoMode)
1019+
var cleanSource = CleaningUtils.cleanNestedBoldTags(source)
1020+
cleanSource = Format.removeSourceEditorFormatting(cleanSource, isInCalypsoMode)
10191021
builder.append(parser.fromHtml(cleanSource, context))
10201022

10211023
Format.preProcessSpannedText(builder, isInCalypsoMode)

0 commit comments

Comments
 (0)