I've been using <s>
to put strikeout in posts -- is there a Markdown way of doing it?
It seems like -[Text here]
would make sense, hehe :)
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communityYes. No. Maybe so.
This means that comments may not include strikeouts.
html
tags like <s> (which stands for strike-through). But they don't work in comments.
Nov 13, 2015 at 19:14
<del>
also works. As you can see here. It might be more semantically correct, especially if you include the "datetime" attribute.
<del>
is semantically more accurate.
Jul 16, 2012 at 16:56
<del>
sounds nice, esp. with a datetime attribute, but it also removed code formatting whereas <s>
did not.
Nov 13, 2013 at 22:51
<del>
isn't Markdown; it would be HTML, if I'm not mistaken.
Sep 17, 2015 at 22:58
It's rather inconsistent. In regular questions/answers, you can use <s>HTML tags</s>
to get strikethrough text like this:
<s>like this</s>
In chat, you can surround text with ---
to get strikethrough, but this doesn't work in regular questions/answers:
---strikethrough text---
It may be off-topic, but since I came to this question while looking for a contextualized solution on Bitbucket and GitHub, I'd like to add the double tilde
too, the only which worked in real Markdown.
~~example~~
-deleted-
Jul 2, 2015 at 15:55
Though a strike-through syntax wasn't available in the original Markdown, as of today (2015), many implementations have unofficially settled on the ~(tilde) character which is supported on Reddit and as someone here mentioned, on Bitbucket too.
Let's hope Stack Overflow also adds this syntax to its Markdown implementation soon!
~
is not used for strike-through in the current CommonMark spec, which SE will be moving to once it stabilizes a bit more.
Nov 13, 2015 at 23:16
Why is the selected answer such a wrong and imprecise one?!
Well, probably because people answer in comments rather than in... an answer.
Anyway.
While Markdown technically doesn't support strikethrough at the moment, several comments pointed out that using strikethrough in comments is possible. \
It is not handy, since ~
isn't supported yet, but actually possible (using Unicode characters)
E̵̵̵x̵̵̵a̵̵̵m̵̵̵p̵̵̵l̵̵̵e̵̵̵ ̵̵̵s̵̵̵t̵̵̵r̵̵̵i̵̵̵k̵̵̵e̵̵̵d̵̵̵ ̵̵̵o̵̵̵u̵̵̵t̵̵̵ ̵̵̵u̵̵̵s̵̵̵i̵̵̵n̵̵̵g̵̵̵ ̵̵̵y̵̵̵a̵̵̵y̵̵̵t̵̵̵e̵̵̵x̵̵̵t̵̵̵ ̵(̵s̵h̵o̵r̵t̵ ̵s̵t̵r̵i̵k̵e̵t̵h̵r̵o̵u̵g̵h̵)̵ (̶l̶o̶n̶g̶ ̶s̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶)̶ (̴t̴i̴l̴d̴e̴ ̴s̴t̴r̴i̴k̴e̴t̴h̴r̴o̴u̴g̴h̴)̴
E̶x̶a̶m̶p̶l̶e̶ ̶s̶t̶r̶i̶k̶e̶d̶ ̶o̶u̶t̶ ̶u̶s̶i̶n̶g̶ ̶a̶d̶a̶m̶v̶a̶r̶g̶a̶ Looks like some work better than other :p
Nov 14, 2018 at 10:33
~text~
for strike through, but this doesn't work in stackoverflow.~~strike this~~
. So does Github, Bitbucket, …