# Strikethrough with empty lines

**URL:** https://meta.discourse.org/t/strikethrough-with-empty-lines/172632
**Category:** Bug
**Tags:** markdown
**Created:** [December 8, 2020, 1:45pm UTC](https://meta.discourse.org/t/strikethrough-with-empty-lines/172632 "2020-12-08T13:45:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [December 8, 2020, 1:45pm UTC](https://meta.discourse.org/t/strikethrough-with-empty-lines/172632/1 "2020-12-08T13:45:09Z")

</div>

When strikethrough is used with multiple lines, it works if the lines that are inside it don’t have empty lines, otherwise it might make some lines without strikethrough.

The main problem here is that the preview shows as if all lines will receive the formating, but the actual post won’t.

Example:

~~Strikethrough line 01.~~

Strikethrough line 02.

~~Strikethrough line 03.  
 ~~

**In the preview, `Strikethrough line 02` was with strikethrough.**

Raw:

```plaintext
<s>
Strikethrough line 01.

Strikethrough line 02.

Strikethrough line 03.
</s>

```

Related:

> [@Multi-Line Strikethrough Not Covering Quotes](https://meta.discourse.org/t/multi-line-strikethrough-not-covering-quotes/64808):
>
> I’m not sure whether this bug is specific to Discourse but when I try to strikethrough several lines of text & one of those lines is a quote, the quote’s text is not struck out. The preview displays the quoted text as struck out - but when posted, it renders like this - Striking out each line instead like this - does behave as I was expecting -

The above topic is related and was solved for multiline, but it seems it doesn’t work when there are empty lines.

The ideal scenario is for all lines to have strikethrough. If this is not feasible, I would at least expect that the composer be consistent with what is shown in the post (be it with all paragraphs in the middle formatted or not, whichever is easier to implement).

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 8, 2020, 9:14pm UTC](https://meta.discourse.org/t/strikethrough-with-empty-lines/172632/2 "2020-12-08T21:14:46Z")

</div>

This does seem like a valid bug, albeit it on the lower priority side of things.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 15, 2025, 12:23am UTC](https://meta.discourse.org/t/strikethrough-with-empty-lines/172632/5 "2025-05-15T00:23:29Z")

</div>

This is now fixed and works consistently 🎊

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 15, 2025, 12:23am UTC](https://meta.discourse.org/t/strikethrough-with-empty-lines/172632/6 "2025-05-15T00:23:39Z")

</div>


