TLDR
Markdown became the default LLM output format because GPT-4's 8,192-token context made terseness load-bearing. That constraint is gone. HTML can express everything Markdown can plus tables with multi-line cells, color-coded severity, inline SVG diagrams, interactive widgets, and in-page navigation — with no real downside for human-facing artifacts. The new rule: if a person reads it, ask for HTML; if a system parses it, keep Markdown.
Content
HTML Is the New Markdown: Why You Should Ask Claude for HTML, Not Markdown.
Why This Conversation Is Happening Now
Until recently, asking an LLM for Markdown was simply correct. Models had small context windows, Markdown is dense, and the rendering chain (chat UIs, IDE panes, GitHub) understood it natively. That trade-off made sense.
The trade-off is no longer the same trade-off. Modern models have context budgets large enough that the few extra tokens HTML costs no longer matter. What matters now is what you can express in the artifact you get back. And on that axis, HTML is in a different league.
What Markdown Cannot Do (No Matter How Hard You Try)
Markdown is great for prose-shaped content. The moment your artifact wants to be anything other than "headings + paragraphs + a list or two," Markdown starts forcing workarounds.
| Capability | Markdown | HTML |
|---|---|---|
| Headings, lists, basic tables | Yes | Yes |
| Multi-line cell content | Awkward | Native |
| Color-coded severity / callouts | No | CSS |
| Inline SVG diagrams | No | Native |
| Interactive widgets (collapsibles, tabs) | No | Native |
| In-page anchors / navigation | Limited | Native |
| Fixed layout that survives copy-paste | No | Yes |
| Diffs cleanly in version control | Yes | Often no |
Notice the last row — that's the one real cost. We'll come back to it.
An Example That Makes the Difference Concrete
Cover image — same information, two different ceilings of expression.
Consider asking Claude to review a pull request. The Markdown version is what you've seen a hundred times: a flat document, headings, bullet lists of comments, maybe a table of severity counts. Useful, but linear.
Here's a prompt that asks for the HTML version instead:
"Help me review this PR by creating an HTML artifact that describes it. I'm not very familiar with the streaming/backpressure logic so focus on that. Render the actual diff with inline margin annotations, color-code findings by severity (red=critical, amber=warning, blue=info), and add a collapsible section per file with its own annotated diff."
The Markdown response cannot deliver that. Inline margin annotations, severity colors, per-file collapsibles — none of those are Markdown features. The HTML response can. Same task, dramatically different artifact.
What HTML buys you that Markdown can't — capability ceiling comparison.
When You Should Ask for HTML
- Code reviews — severity-colored findings, inline diff annotations, anchored sections.
- Technical breakdowns — SVG diagrams of system flow, callouts with distinct visual weight.
- Comparisons — real tables with multi-line cells, badges, inline icons.
- Briefings and one-pagers — structured layouts that look right in a browser.
- Anything layered or conditional — collapsibles for "want more detail?", tabs for variants.
- Educational explainers — where the medium is half the message.
When You Should Stay on Markdown
Same task. Same model. Different ceiling — because the output format itself constrains what the model can express.
- Anything a downstream Markdown engine renders — GitHub READMEs, docs CMS, Slack messages.
- Inputs to other LLMs — token economy and clean structure both matter more than presentation.
- Heavily collaborative documents — Markdown diffs cleanly; HTML is a nightmare to review line-by-line.
- Quick conversational answers — structure is overhead when the response is two sentences.
The Rule of Thumb
If a human will read the artifact and act on it, ask for HTML. If a system or another model will parse it, ask for Markdown. The output format should match how the artifact is consumed — not which one feels more like "documentation."
One question decides the format — who's the consumer?
Practical Tips for HTML Artifacts
- Specify the structure you want. Don't ask for "an HTML artifact" — ask for the sections, the colors, the anchors. The model will deliver to the spec you write.
- Lock the palette early. If you have a brand (and you should), specify the color codes in the prompt. Otherwise the model picks generic blues and greens.
- Scope your styles. Inline `