Why HTML is becoming the better default for AI-generated reports, reviews, and working surfaces.
By Youssef Hosni
Published: 2026-05-28
URL: https://todatabeyond.substack.com/p/according-to-anthropics-engineer
This blog is written by Kaitai Dong and published with his permission!
Stop asking AI agents for long Markdown reports when the output needs to be reviewed, shared, filtered, edited, or acted on. Ask for a single-file HTML interface instead.
Markdown is great for short, disposable text. But for complex AI outputs — code reviews, research briefs, planning docs, dashboards, diagrams, prototypes, and decision reports — HTML can turn a static response into a working surface.
To Data & Beyond is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
That is the core idea behind Anthropic engineer Thariq Shihipar’s “HTML is the new Markdown” argument [1]: the point is not that HTML looks nicer, but that it lets AI-generated work become interactive, navigable, and reusable.
In other words:
*Markdown gives you something to read.
HTML gives you something to use.*
As AI agents become better at producing structured work, the real question is no longer just “What should the model say?” It is “What kind of artifact should the model create so humans can actually work with it?”
\Figure 1: A screenshot of the original article on using HTML for agents [Image by Author]\
Table of Contents:
- Core Argument
- Markdown vs. HTML Capability Comparison
- Live Comparison Demo
- Draggable Priority Kanban Board on HTML
- The Decision Flow
- Practical Prompt Template
Want to Learn Claude Cowork in a Practical Way?
I’m hosting a live 1.5-hour workshop: Hands-On Claude Cowork: From Prompts to Deliverables & Automated Workflows
We will cover how to use Claude Cowork to move from simple prompts to real deliverables, structured workflows, and practical automation.

1. Core Argument
Markdown has become the dominant file format used by agents to communicate with us. When output length is no longer the bottleneck, the old reason for defaulting to Markdown becomes weaker.
Markdown is excellent when the goal is to read something quickly and move on: a commit message, a short summary, a PR description, a note, or a lightweight doc. But many AI outputs are no longer just “things to read.” They are things to inspect, compare, revise, filter, share, and act on.
Thariq’s observation is simple: reports are read and discarded; interfaces let people keep working. Once a model can generate tens of thousands of tokens of structured output, the next step is not merely producing more text. It is producing a better artifact.
Markdown is a report. HTML is an interface.
I believe that Markdown’s token efficiency mattered during the GPT-4 era, when smaller context windows made compact output valuable. But for richer explanations, HTML lets the model include SVG diagrams, interactive widgets, in-page navigation, and other structures that make information easier to explore.
The deeper shift is this:
We should stop optimizing only the prompt and start optimizing the artifact.
A good AI response should not merely answer the question. It should reduce the cost of the next human action.
2. Markdown vs. HTML Capability Comparison
The fundamental difference between Markdown and HTML is not length. It is whether the output stays static or becomes usable.
\Figure 2: A side-by-side comparison of a traditional Markdown file and a proposed HTML file on their limitations and capabilities [Image by Author]\
Markdown’s limits
Markdown is readable, portable, and simple. But Markdown struggles when the output needs:
- collapsible sections
- filtering or sorting
- status tracking
- visual hierarchy
- embedded diagrams
- live calculations
- reusable interaction
- custom editing controls
- persistent local state
That is why many AI outputs feel useful but do not become used. The content exists, but it is not operational.
What HTML adds
HTML can turn the same content into a working interface.
This is the key difference:
*Markdown describes the work.
HTML can become part of the work.*
\Figure 3: A high-level summary of the capability difference between HTML and Markdown, measured in 6 dimensions [Image by Author]\
If I compare them across six dimensions: readability, interactivity, visual richness, shareability, state tracking, and reusability. The difference is noticeable. Markdown and HTML are close when the task is only reading. They diverge when the task becomes reviewing, comparing, deciding, editing, or presenting.
Thariq’s demo shows why [2]. A research explainer benefits from collapsible sections, tabbed code samples, and a glossary. A weekly status report benefits from a chart and timeline. A feature-flag editor benefits from toggles, dependency warnings, and a copy-diff button. These are not cosmetic upgrades; they change how the reader interacts with the output.
3. Live Comparison Demo
Similar to what Thariq did, I generated the same code review report in Markdown and HTML to see the difference between the two.
In my Markdown file, a code review is a long scroll. It is definitely readable, but flat. Every issue has the same visual weight unless the reader manually scans headings and bullet points.
# Code Review Report
## Summary
- Critical: 2
- Warning: 3
- Info: 1
- Passed: 4
## Critical Issues
### auth.ts:42 — Unvalidated SQL string concatenation
There is a SQL injection risk. Use parameterized queries instead.
### api/users.ts:118 — Bearer token expiration is not checked
Any expired token is treated as valid.
## Warnings
- forms.tsx:88 — Missing onError handler
- utils/parse.ts:23 — Null is not handled
- styles.css:412 — Unused selector
## Info
- README.md — Documentation version is outdated
## Passed
... (omitted)
But in HTML, the same review can become a dashboard with severity badges, collapsible issue cards, filters for critical/warning/info/passed checks, and links to jump to affected files, just to name a few. (If you wonder how I converted a Markdown file into HTML, keep scrolling down the article, and I will share a practical template I use!!)
\Figure 4: An HTML example of the equivalent Markdown file for code review [Image by Author]\
For code review, diffs and call graphs are spatial information, but Markdown flattens them. That is why HTML is not just a nicer container. It preserves the shape of the problem:
- A codebase has structure
- A review has priority
- A fix has a sequence
A dashboard can show those relationships better than a wall of text.
4. Draggable Priority Kanban Board on HTML
Moreover, HTML can support state and workflow. A priority board is a good example because it turns AI output from advice into a workspace.
A Markdown response can say:
- fix SQL injection
- Add token expiration checks
- Add error handling
- clean unused CSS
- update documentation
But an HTML Kanban board can let the user move those items between TODOs, In Progress, and Done. It can group tasks by severity, show ownership, and preserve the state locally.

\Figure 5: An HTML example of a draggable Kanban board for task tracking [Image by Author]\
Thariq’s custom editor examples push this even further. He describes throwaway interfaces for ticket triage, feature flags, and prompt tuning. The important pattern is that these interfaces end with an export button, turning the user’s changes back into Markdown, code, or a prompt that can be pasted into the next step.
That is a powerful loop:
- The agent generates an interface.
- The human edits inside it.
- The interface exports the result.
- The agent or team continues from there.
The human stays in the loop, but the loop gets tighter.
5. The Decision Flow
All you need is to ask three questions to decide whether an output should be Markdown or HTML.
\Figure 6: A visual decision workflow on how to choose between a Markdown and an HTML file [Image by Author]\
Use Markdown when:
- The output is short.
- The content will be read once.
- The format needs to stay plain-text.
- The goal is a quick answer, commit message, note, or simple PR description.
- The user does not need interaction, state, or visual structure.
Use HTML when:
- The output will be revisited.
- Multiple people need to review it.
- The content has hierarchy or competing options.
- The reader needs filtering, sorting, or navigation;
- The artifact needs diagrams, timelines, charts, or status.
- The user needs to edit, reorder, or export results.
Just remember:
*If it is an endpoint, Markdown is enough.
If it is a workspace, use HTML.*
6. Practical Prompt Template
Here, I include a reusable prompt for generating a single-file HTML report. This prompt should remain practical and copyable.
Create a single-file HTML report for the following content. Requirements:
- Use a clean, modern layout with no external dependencies.
- Include an executive summary at the top.
- Add status badges for severity, priority, or confidence.
- Use collapsible sections for detailed explanations.
- Include a sticky table of contents.
- Add at least one searchable or filterable list.
- Use inline SVG or simple charts where visual structure helps.
- Include an action checklist with checkboxes.
- Use vanilla JavaScript only.
- Keep all CSS and JS inside the same HTML file.
- Make the page easy to open locally in a browser.
At the end, wrap the full result in a single ```html``` code block.
As an example, here is what I have adapted this template to output that code review as a single-file HTML page.
Output this code review as a single-file HTML page. Show each issue as a card with:
- severity
- file path
- impact
- suggested fix
- testing notes
- owner or follow-up status, if relevant
Add filters by severity and file. Include a summary dashboard at the top. Use collapsible sections for longer explanations. Where useful, render before/after code snippets side by side.
If you also want to give it a try, I would suggest you:
- Add “prefer single-file HTML for complex outputs” to your Claude Code or agent instructions.
- Create a personal HTML report template with a sticky TOC, summary cards, collapsible sections, and checklists.
- Publish one generated HTML artifact and share it with a teammate.
The practical takeaway:
Do not use HTML for everything. Use it when the output deserves to become a surface.
References
[1] Original X post by Thariq Shihipar:
[2] Demo post by Thariq Shihipar
Want to Learn Claude Cowork in a Practical Way?
I’m hosting a live 1.5-hour workshop: Hands-On Claude Cowork: From Prompts to Deliverables & Automated Workflows
We will cover how to use Claude Cowork to move from simple prompts to real deliverables, structured workflows, and practical automation.
Date: Saturday, 6th of May
Time: 7:30 PM EEST
Price: $30
You can book your seat here:

To Data & Beyond is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.