Markdown Strikethrough: How to Cross Out Text
To strikethrough text in GitHub Flavored Markdown and Discord, wrap the text with two tildes on each side: ~~crossed out text~~.
Syntax Code Snippet
~~This text is struck through.~~ The original price was ~~$49~~ now only $29!
Rendered HTML Output Preview
This text is struck through.
The original price was $49 now only $29!
Platform Compatibility & Differences
GitHub (GFM):
Supported via GitHub Flavored Markdown (GFM) using `~~text~~`.
Discord Chat:
Fully supported with `~~text~~`.
Reddit:
Fully supported with `~~text~~` in Fancy Pants and Markdown modes.
Jupyter Notebooks:
Supported in Jupyter notebook Markdown cells.
How to Use Markdown Strikethrough
- Copy the ready-to-use Strikethrough syntax snippet below.
- Inspect the rendered live preview in both light and dark themes.
- Review platform compatibility differences for GitHub, Discord, Reddit, and Jupyter notebooks.
- Check common pitfalls and copy formatted snippets directly.
Practical Examples
Strikethrough Syntax Pattern
Strikethrough indicates deleted information, completed items, or revised pricing.
Input:
~~This text is struck through.~~ The original price was ~~$49~~ now only $29!
Output:
Rendered visual format
Common Mistakes & Troubleshooting
- Using a single tilde `~text~` (which represents subscript in Pandoc, not strikethrough).
- Leaving spaces between the tildes and the word, like `~~ text ~~`.
Frequently Asked Questions
Can I combine strikethrough with bold or italics?
Yes! Wrap both symbols together: `~~***bold, italic, and strikethrough***~~`.