Please add strikethrough and underline support in Markdown

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:

http://discourse.mcneel.com/t/can-we-get-a-strike-through-text-style/519/4

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 ~~.

1 Like

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.

http://www.w3.org/TR/html5/text-level-semantics.html#the-s-element

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.

http://www.w3.org/TR/html5/edits.html#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>

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]

2 Likes