Why Markdown suits LLMs and notes
Raw HTML is full of markup, navigation menus, scripts and ads that add tokens and noise without adding meaning. Markdown keeps the structure that matters, such as headings, lists, links, tables and code blocks, in plain text that people and language models both read easily. Feeding a model the Markdown of a page uses fewer tokens than the HTML and gives it a cleaner signal, which helps with summarization, question answering and retrieval pipelines.