NanoFile

Markdown strikethrough

Two tildes either side of the text draw a line through it. It is a GitHub-flavoured extension rather than original markdown, which is why a few older renderers ignore it.

Strikethrough
~~struck through~~

struck through

Combined with other emphasis
~~**struck and bold**~~

struck and bold

What usually goes wrong

  • Two tildes, not one. A single ~text~ works on some platforms and does nothing on others, so ~~ is the portable choice.
  • Not part of the original 2004 markdown spec. A strict CommonMark renderer with no GFM extensions shows the tildes as literal characters.
  • Inside a table cell you may need to escape a pipe that follows, or the row breaks.

Where it behaves differently

PlatformBehaviour
GitHub, Obsidian, Notion~~text~~ works.
SlackSlack uses a single tilde, ~text~.
Discord~~text~~, same as GitHub.

Related