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 :)
Yes. 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. <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. <del> sounds nice, esp. with a datetime attribute, but it also removed code formatting whereas <s> did not. <del> isn't Markdown; it would be HTML, if I'm not mistaken. datetime attribute it doesn't work :( 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- ~example~. 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. ~ for formatting strikethrough.) 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)
So, to strike through text in questions, use the <\s> or <\del> tags
Example striked out using <\s> tag
Example striked out using <\del> tag
For comments, use external converters or tools, like those websites (credits go to respective commenters)
http://yaytext.com/strike/
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̶ (long strikethrough)
http://adamvarga.com/strike/
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̶ (note the site also features an extension. I did install a similar one for Gmail, once: that may be very handy.)
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 It's 2024 and X X ~~X~~ all no longer work.
~text~for strike through, but this doesn't work in stackoverflow.~~strike this~~. So does Github, Bitbucket, …