Issues with strikethrough <s> HTML5 tag

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

2 Likes

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

It works as expected there. 3 paragraphs with strikethrough.

Permalink to github.io