Markdown Backslash Escapes

Last updated: 2026-10-14

Backslash Escapes CommonMark core

A backslash renders Markdown specials literally: \* prints an asterisk, \# a hash. Around 21 ASCII punctuation characters are escapable — essential for showing literal symbols.

GroupBasic: Inline
Spec levelCommonMark core
Spec versionCommonMark 0.31.2 + GFM

📝 Syntax

\* shows *
\# shows #

▶ Live Example

Edit Markdown on the left, see the result on the right

💡 Key points

ℹ️ Note Only ASCII punctuation is escapable; a backslash before a letter stays literal.
💡 Tip Inside code spans and blocks, backslashes are literal — code is escape-free by design.

❓ FAQ

Q Which characters are escapable?
A The 21 CommonMark ASCII punctuation: backslash, backtick, *, _, braces, brackets, parens, #, +, -, ., !, |.
Q What about escaping letters or CJK?
A The backslash stays visible — only punctuation is on the escape list.
Q Escapes vs HTML entities?
A Escapes stop Markdown parsing; entities replace characters at the HTML level.

📚 See also

Inline CodeCommonMark core HTML EntitiesCommonMark core
Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏