Skip to content

Commit 892b7d3

Browse files
authored
feat: use <s> for strikethrough (#45)
1 parent b0f96f4 commit 892b7d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/com/swmansion/reactnativerichtexteditor/utils/EditorParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ private static void withinParagraph(StringBuilder out, Spanned text, int start,
459459
out.append("<h3>");
460460
}
461461
if (style[j] instanceof EditorStrikeThroughSpan) {
462-
out.append("<span style=\"text-decoration:line-through;\">");
462+
out.append("<s>");
463463
}
464464
if (style[j] instanceof EditorLinkSpan) {
465465
out.append("<a href=\"");
@@ -490,7 +490,7 @@ private static void withinParagraph(StringBuilder out, Spanned text, int start,
490490
out.append("</mention>");
491491
}
492492
if (style[j] instanceof EditorStrikeThroughSpan) {
493-
out.append("</span>");
493+
out.append("</s>");
494494
}
495495
if (style[j] instanceof EditorUnderlineSpan) {
496496
out.append("</u>");

0 commit comments

Comments
 (0)