Please add strikethrough and underline support in Markdown

AI-generated summary

The discussion revolves around adding strikethrough and underline support in Markdown on Discourse. rahim123 initiated the conversation, suggesting the use of ~~deleted text~~ for strikethrough support and +underlined+ for underline support, similar to Textile. However, erlend_sh pointed out that Markdown suggestions should be directed to the CommonMark spec, as inventing own conventions would defeat the purpose of creating the spec.

It was later discovered that strikethrough is already available using HTML code <del>some old text</del> (watchmanmonitor) and <s>strikethrough</s> (rahim123). DeanMarkTaylor explained the semantic difference between <s> and <del> elements in HTML5 spec.

NomNuggetNom mentioned that strikethrough and underline are possible using BBcode, and JammyDodger confirmed that strikethrough is now supported using Markdown ~~strikethrough~~. However, underline support is still limited to BBcode [u]underline[/u].

Hello,

Github Markdown has strikethrough support like this:

~~deleted text~~

This would be extremely useful on my site. Additionally, it is sometimes useful to strikethrough an entire paragraph. Maybe it could be implemented like this?

~~~
Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. Long paragraph of deleted text. 
~~~

Additionally, it would be nice to have underline support like Textile:

+underlined+

I know that Discourse has bbcode support too, but I hate bbcode and all [hate]tags[/hate] pretty much. :smile:

Thanks a lot fore reading!

6 Likes

Markdown suggestions should be directed to talk.commonmark.org, or more specifically this existing thread about the strikeout feature. If Discourse invents its own conventions, that would defeat the whole purpose of creating the CommonMark spec.

3 Likes

Ah, I didn’t know there was a spec, thanks for the link. I assumed it was kind of a dead project being forked by any number of newer initiatives.

As I learned here:

Can we get a strike through text style? - #4 by Helvetosaur - Meta - McNeel Forum

Strikethrough is available now via <del>some old text</del> (some old text )

Hope this helps!

2 Likes

<s>strikethrough</s> strikethrough also works, but it’s still not as simple and intuitive as ~~.

2 Likes

Standard HTML code strike-though is not yet available! now available!

According to the HTML5 spec, <s> or <strike> serve a different purpose to <del> semantically.

The <s> element represents contents that are no longer accurate or no longer relevant.

NOTE: The s element is not appropriate when indicating document edits; to mark a span of text as having been removed from a document, use the del element.

The del element represents a removal from the document.

Using <del> also causes rise for people to use <ins> to insert text, the underline text on the first line of this post is inserted like this:
<ins> now available!</ins>

1 Like

It is possible to strikethrough and underline using BBcode, just in case you want to use it in the mean time.

[s]text[/s] text
[u]text[/u] text

3 Likes

There is ample support for this, so closing.

1 Like

Strikethrough is now supported using markdown:

strikethrough

~~strikethrough~~

No underline as yet though, apart from the bbcode:

underline

[u]underline[/u]

3 Likes