diff --git a/src/main/java/com/overzealous/remark/Remark.java b/src/main/java/com/overzealous/remark/Remark.java index a0697d3..99b162f 100644 --- a/src/main/java/com/overzealous/remark/Remark.java +++ b/src/main/java/com/overzealous/remark/Remark.java @@ -85,7 +85,8 @@ public Remark(Options options) { "h1", "h2", "h3", "h4", "h5", "h6", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "hr", - "span", "font") + "span", "font", + "del", "strike", "s") .addAttributes("th", "colspan", "align", "style") .addAttributes("td", "colspan", "align", "style") .addAttributes(":all", "title", "style"); diff --git a/src/main/java/com/overzealous/remark/convert/DocumentConverter.java b/src/main/java/com/overzealous/remark/convert/DocumentConverter.java index 74cc284..09975a9 100644 --- a/src/main/java/com/overzealous/remark/convert/DocumentConverter.java +++ b/src/main/java/com/overzealous/remark/convert/DocumentConverter.java @@ -85,7 +85,7 @@ public DocumentConverter(Options options) { } private void configureNodes() { - addInlineNode(new InlineStyle(), "i,em,b,strong,font,span"); + addInlineNode(new InlineStyle(), "i,em,b,strong,font,span,del,strike,s"); addInlineNode(new InlineCode(), "code,tt"); addInlineNode(new Image(), "img"); addInlineNode(new Anchor(), "a"); diff --git a/src/test/resources/conversions/html/unknownHTML.html b/src/test/resources/conversions/html/unknownHTML.html index 1dcb4e3..ab49400 100644 --- a/src/test/resources/conversions/html/unknownHTML.html +++ b/src/test/resources/conversions/html/unknownHTML.html @@ -2,6 +2,6 @@ Division -
Variable
\ No newline at end of file diff --git a/src/test/resources/conversions/markdown/unknownHTML-allowed.md b/src/test/resources/conversions/markdown/unknownHTML-allowed.md index abcecdf..5d1ac67 100644 --- a/src/test/resources/conversions/markdown/unknownHTML-allowed.md +++ b/src/test/resources/conversions/markdown/unknownHTML-allowed.md @@ -1,5 +1,5 @@ Division -