AI Engineer Study Library

Use HTML for LLM Outputs, Markdown for Context

Melvin Vivas · X post · 2026-05-09 · Open on X

Topics: Prompt & Context Engineering · Level: intermediate

Summary

A short take on output formats: have the model produce HTML when you need richer output, but don't feed HTML into the context. Markdown usually takes fewer tokens, so it's the better choice for input context. The post also points out that the article's author works at Anthropic, so token cost doesn't matter much to him.

Key points

Try this

More in Prompt & Context Engineering

All of Prompt & Context Engineering