diff --git a/blocks/api/raw-handling/markdown-converter.js b/blocks/api/raw-handling/markdown-converter.js index cd0ee5ea4ebfd..ead5d6c8cfd96 100644 --- a/blocks/api/raw-handling/markdown-converter.js +++ b/blocks/api/raw-handling/markdown-converter.js @@ -10,6 +10,7 @@ const converter = new showdown.Converter( { literalMidWordUnderscores: true, omitExtraWLInCodeBlocks: true, simpleLineBreaks: true, + strikethrough: true, } ); /** diff --git a/test/integration/fixtures/markdown-in.txt b/test/integration/fixtures/markdown-in.txt index ef2b6187d1e27..c985608462247 100644 --- a/test/integration/fixtures/markdown-in.txt +++ b/test/integration/fixtures/markdown-in.txt @@ -1,6 +1,6 @@ # This is a heading with *italic* -This is a paragraph with a [link](https://w.org/) and **bold**. +This is a paragraph with a [link](https://w.org/), **bold**, and ~~strikethrough~~. Preserve line breaks please. diff --git a/test/integration/fixtures/markdown-out.html b/test/integration/fixtures/markdown-out.html index 867fa64ebea50..5b674a8bfaf86 100644 --- a/test/integration/fixtures/markdown-out.html +++ b/test/integration/fixtures/markdown-out.html @@ -3,7 +3,7 @@

This is a heading with italic

-

This is a paragraph with a link and bold.

+

This is a paragraph with a link, bold, and strikethrough.