Issues with strikethrough <s> HTML5 tag

composer
markdown-it-review

(Joshua Rosenfeld) #1

Summary:

Using <s> </s> tags with multiple paragraphs produces inconsistent results in the preview pane versus a baked post.

Steps to reproduce:

  1. Create multiple paragraphs with blank lines separating them
  2. Add <s> in front of first paragraph
  3. Add ` at end of second (or later) paragraph

Expected Results:

All text between <s> and </s> is striked out

Actual Results:

Preview pane shows expected results. Only first paragraph in baked (submitted) post is striked out.

Notes:

I was able to replicate this on try.discourse.org, however try is a beta ahead (10) of stonehearth. See post below:
https://try.discourse.org/t/testing-strikethrough/340?u=jomaxro

Attachments:

Screenshot of post editor and submitted post on try.

Version:

Discourse 1.5.0.beta9 (discourse.stonehearth.net)
Discourse 1.5.0.beta10 (try.discourse.org)

System Information:

Windows 10 Pro, Chrome Stable 48


(Sam Saffron) #2

What happens here: https://markdown-it.github.io/ ?


(Joshua Rosenfeld) #3

It works as expected there. 3 paragraphs with strikethrough.

Permalink to github.io


(Jeff Atwood) #4