Custom rendering: strike through support

This commit is contained in:
M66B 2020-04-26 10:44:01 +02:00
parent 9ea40589e7
commit ce506fa2f8
1 changed files with 3 additions and 0 deletions

View File

@ -1999,6 +1999,9 @@ public class HtmlHelper {
case "strong":
ssb.setSpan(new StyleSpan(Typeface.BOLD), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break;
case "s":
ssb.setSpan(new StrikethroughSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break;
case "u":
ssb.setSpan(new UnderlineSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break;