Skip to content

Commit

Permalink
Convert strikethrough in Markdown (#7171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 6, 2018
1 parent 581323e commit 423dbed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions blocks/api/raw-handling/markdown-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const converter = new showdown.Converter( {
literalMidWordUnderscores: true,
omitExtraWLInCodeBlocks: true,
simpleLineBreaks: true,
strikethrough: true,
} );

/**
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fixtures/markdown-in.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fixtures/markdown-out.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h1>This is a heading with <em>italic</em></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>This is a paragraph with a <a href="https://w.org/">link</a> and <strong>bold</strong>.</p>
<p>This is a paragraph with a <a href="https://w.org/">link</a>, <strong>bold</strong>, and <del>strikethrough</del>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
Expand Down

0 comments on commit 423dbed

Please sign in to comment.