Markdown Inline Code
Last updated: 2026-10-14
Inline Code CommonMark core
Wrap text in single backticks for inline code, like `npm install`. It renders monospaced with no Markdown parsing inside — the standard for commands, variables, functions and filenames.
| Group | Basic: Inline |
|---|---|
| Spec level | CommonMark core |
| Spec version | CommonMark 0.31.2 + GFM |
📝 Syntax
`code here`
▶ Live Example
Edit Markdown on the left, see the result on the right
💡 Key points
💡 Tip Backtick content is fully literal — the easiest way to show literal *, # or _.
ℹ️ Note If the code contains a backtick, wrap it in double backticks: `` `code` ``.
❓ FAQ
Q What if the code contains a backtick?
A Wrap with more backticks and pad with spaces: `` `x` ``.
Q Inline code vs code block?
A Inline sits inside text on one line; blocks are multi-line with language tags.
Q Does inline code get highlighting?
A Usually not — style only; use a fenced block for highlighting.