601

Using HTML tags is supposed to work with GitHub Markdown but, in particular, <s>text</s> is not working for me. It used to work on the now deprecated live preview page, but not on preview of README.md file. It works on wikis. I didn't find any special syntax for strikethrough on the Markdown: Syntax page.

Is it not possible?

ale
  • 52,972
  • 42
  • 165
  • 314
Nevena
  • 6,121
  • 2
  • 16
  • 6

5 Answers5

816

Use ~~double tildes around the words~~.

Jeff Puckett
  • 553
  • 1
  • 5
  • 10
Ian Greenleaf Young
  • 8,514
  • 1
  • 16
  • 6
183

I just used the following syntax

<del> ... </del>

successfully on GitHub in an issue description.

bit-pirate
  • 1,931
  • 1
  • 11
  • 3
110

I know this is an old question, but I don't see a very detailed answer of the possibilities to strikethrough your text. So here's my answer:

There are several ways to do it:

  1. <strike>strike</strike>strike
  2. <del>strike</del>strike
  3. <s>strike</s>strike
  4. ~~strike~~ → ~~strike~~
  5. ~strike~ → ~strike~

Because tildes don't work on Stack Exchange (later: SE) platforms, the HTML syntax is the most correct way to strike your text. This syntax is a little "hack" to do the same thing instead of the markdown notations.

Because there is no universal notation for markdown text, the notations may be different for each platform. Here is an overview for several platforms:

  • On Slack, you must use a single tilde
  • On GitHub, you can use all notations
  • On SE platforms, you must use the HTML syntax notations, as said above (except for comments)

The GitHub Flavored Markdown only mentions that you can use double tilde, but you can use everything.

H. Pauwelyn
  • 1,215
  • 1
  • 8
  • 18
12

Use ~ to enclose whatever you want to strike.

Here's a GIF.

animated gif showing use of tilde

Just use ~ character at the start and the end in markdown.

~strike~

Ahmad Awais
  • 239
  • 2
  • 5
-2

<s> and </s> is the only thing working
~ and ~~ both of them are not working under

ale
  • 52,972
  • 42
  • 165
  • 314