Futures
Access hundreds of perpetual contracts
CFD
Gold
One platform for global traditional assets
Options
Hot
Trade European-style vanilla options
Unified Account
Maximize your capital efficiency
Demo Trading
Introduction to Futures Trading
Learn the basics of futures trading
Futures Events
Join events to earn rewards
Demo Trading
Use virtual funds to practice risk-free trading
Launch
CandyDrop
Collect candies to earn airdrops
Launchpool
Quick staking, earn potential new tokens
HODLer Airdrop
Hold GT and get massive airdrops for free
Pre-IPOs
Unlock full access to global stock IPOs
Alpha Points
Trade on-chain assets and earn airdrops
Futures Points
Earn futures points and claim airdrop rewards
Promotions
AI
Gate AI
Your all-in-one conversational AI partner
Gate AI Bot
Use Gate AI directly in your social App
GateClaw
Gate Blue Lobster, ready to go
Gate for AI Agent
AI infrastructure, Gate MCP, Skills, and CLI
Gate Skills Hub
10K+ Skills
From office tasks to trading, the all-in-one skill hub makes AI even more useful.
GateRouter
Smartly choose from 40+ AI models, with 0% extra fees
HTML or Markdown? Before outputting in Claude Code format, take 30 seconds to think about these things
Claude Code engineers advocate replacing Markdown with HTML as the default format for AI outputs, sparking debates both for and against. Some columnists suggest users should spend 30 seconds evaluating these issues before requesting AI to generate formats.
Claude Code engineers advocate HTML over Markdown
As AI agents become increasingly popular, Markdown has become the default standard for communication between most AIs and users.
However, recently Claude Code engineer Thariq Shihipar posted that, with the significant improvement in AI agent capabilities, Markdown is gradually becoming a limitation. Files longer than 100 lines are hard to read, and sharing and visual presentation pose many inconveniences. Switching Claude Code’s output format to HTML could bring notable advantages.
He pointed out that HTML has extremely high information density, can present design data through CSS, draw illustrations with SVG, and even combine JavaScript to achieve two-way interactive functions.
These features make documents more visually organized and greatly increase team members’ willingness to read lengthy technical specifications and reports. When sharing, HTML files can be uploaded to cloud storage and viewed easily via links, avoiding the lack of native support for Markdown in some browsers.
Image source: Thariq Shihipar Claude Code engineers advocate HTML over Markdown
HTML or Markdown? Think about three questions before output
Shihipar’s idea of “HTML replacing Markdown” quickly sparked heated discussion and skepticism in the community. But the real focus should be: When should you use HTML, and when should you use Markdown?
Columnist The Smart Ape, who focuses on cryptocurrency and AI, believes that debating which format is better is pointless. The choice of format depends entirely on the audience, editing frequency, and lifecycle of the document. Choosing the wrong format can waste a lot of tokens and editing time, and even affect the accuracy of database searches.
He recommends considering the following three questions before asking Claude Code to generate a format.
⭐Who will read this document?
If this document needs to be re-read by Claude or other AI agents in the future, such as for indexing code repositories or technical specifications, Markdown is definitely the best choice.
The Smart Ape points out that HTML contains a large amount of styles and tags, which can consume more than three times the number of tokens, and dilutes semantic signals, leading to a 15% to 25% decrease in relevance during subsequent AI retrieval; but if the document is a one-time report for human reading, HTML can be considered.
⭐How many times will this document be edited?
When modifying Markdown files, AI usually only needs to replace a few lines of text. When editing styled HTML files, AI often rewrites the surrounding markup language as well. After 5 to 10 edits, HTML files can suffer from serious “tag drift,” with mixed spacing systems and color configurations inside.
The Smart Ape believes that if a document needs frequent updates, using Markdown ensures content stability, while HTML is only suitable for final publication formats.
⭐How long is the lifecycle of this document?
The longevity of a document is also a major consideration. After six months, developers can easily search for specific Markdown content within a project using keywords, but in HTML, complex tag structures may cause search failures.
Additionally, a Markdown file from years ago can still be opened cleanly, whereas HTML files relying on external resources may face style failures. Therefore, for core documents that require long-term preservation and retrieval, Markdown should be the baseline.
The Smart Ape believes the best approach is to treat Markdown as a single source of truth and dynamically generate HTML for different audiences as needed.
Image source: The Smart ApeHTML or Markdown? Think about three questions before output
⭐Spend 30 seconds first to do a reversible test
The Smart Ape also shared a 30-second reversible test as a final quality check.
Before deciding to use HTML, ask yourself: Can this document be perfectly converted back into clean Markdown with a single prompt? If not, it indicates that the content is deeply tied to markup language, and maintaining this document in the future could be difficult.
Computer scientist: Looking forward to a major upgrade in AI interaction
Although the debate over choosing HTML or Markdown has sparked heated opinions, OpenAI former computer scientist Andrej Karpathy remains optimistic.
He pointed out that requiring LLMs to output in HTML format at the end of prompts, and opening the generated files in browsers, is very effective at this stage. He has also successfully used AI to produce slides and other formats.
He believes humans are visual creatures, and as AI technology advances, output formats will undergo several stages of upgrade. He even predicts that this development will eventually lead to neural networks directly generating interactive videos or simulated environments.
Further reading:
Claude Code leader: Coding has already been solved by AI! Why is “/loop” the future?
Claude Code + OnlyFans earns thousands of dollars a month? How credible is the AI startup article with 8B views?