Markdown Strikethrough: How to Cross Out Text
Strikethrough draws a line through words: handy for done items, old prices or changed plans. Put two tildes ~~ on each side. The tilde ~ is Shift plus the key left of 1.
The rule
Put two tildes ~~ on each side of words to cross them out. The tilde ~ is Shift plus the key left of 1.
You type
~~Old plan~~ New planYou get
Old plan New plan
Try it yourself
Cross out Sun hat.
Live preview
More examples
You type
~~Old plan~~ New planYou get
Old plan New plan
Crossed out, then the replacement.
You type
Price: ~~$20~~ $15You get
Price: $20$15
An old price.
Common mistakes
You type
--Old plan--Shows as
--Old plan--
Dashes do not cross anything out; use tildes.
You type
~~ Old plan ~~Shows as
~~ Old plan ~~
Spaces just inside the tildes stop it working on GitHub.
Where it works
GitHub, Obsidian, Notion, Discord, Reddit and most modern apps. It is an extension, so a few strict Markdown tools ignore it.
Keep it, not just learn it
The full course has 22 skills on five islands, short Missions that check your answers, and reviews a few days later so it sticks. Free, no sign-up.