Inline and Block HTML in Markdown

From the Markdown cheat sheet · HTML in Markdown · verified Aug 2026

Inline and Block HTML

Mix supported HTML with Markdown content.

markdown
Press <kbd>Ctrl</kbd> + <kbd>C</kbd>.
⚠️ Renderers may sanitize or remove raw HTML
📌 Markdown inside HTML blocks varies by context
💡 Use HTML only when Markdown cannot express the result
🎯 Test output on the actual publishing platform
htmlraw-htmldetails

Continue with Markdown

Save the full cheat sheet or work through every related task.

Back to the full Markdown cheat sheet