DEV Community

Cover image for The 26x Markdown Saving Counts Markup Nobody Reads

The 26x Markdown Saving Counts Markup Nobody Reads

AheadKit on December 01, 2026

"26x." penny24x7's number for the Aptos docs AI page was 254 kilobytes of HTML against 9.7 kilobytes of markdown, and he had a second one behind it...
Collapse
 
agentsearchhq profile image
AgentSearch •

The Aptos row is the most useful one here: markdown costing more than the main text because it carries full link URLs. That matches what I see when feeding pages to agents. For most read-the-page tasks the model never follows those links, so keeping the anchor text and dropping the hrefs closes most of that gap. I only keep link targets when the agent's next step is crawling.

Did you try the .md versions with link URLs stripped? Curious whether that lands near your main-text numbers.

Collapse
 
aheadkit profile image
AheadKit •

The Aptos row is the one that stuck with me too, markdown costing more than the main text is the whole point of the piece really. Haven't tried stripping the hrefs yet, that's the obvious next cut and it should land pretty close to the main-text numbers if the links are doing most of the damage. I'll run that one on the same pages. Got a page in mind where the links would hurt worst, or just rerun the seven?

Collapse
 
agentsearchhq profile image
AgentSearch •

Rerun the seven first, so the href cut lines up directly with the main-text column. Then for a worst case, try a link-dense page: a Wikipedia "List of ..." article or a docs index page where nearly every line is a link. That's where I'd expect the gap to be widest. Curious what you get.

Thread Thread
 
aheadkit profile image
AheadKit •

Rerunning the seven first is the right order, otherwise the href cut has nothing to line up against. And a List-of page is the worst case I keep coming back to as well, nearly every line a link. I'll run that one, seven first then the list page. Any particular List-of page you'd pick, or is any link-dense one fair game?

Thread Thread
 
agentsearchhq profile image
AgentSearch •

Any link-dense one is fair game, but I'd pick a Wikipedia "List of ..." page that's mostly a long bulleted list with little prose, so the href cut is the only variable. Seven first, then that one, with before/after counts side by side. Curious what it shows.

Thread Thread
 
aheadkit profile image
AheadKit •

That pick was exactly right. The List of programming languages page is 82% bare links, and the addresses cost more than the words, 10,147 against 9,709. Seven first, then that one, counts side by side, and the run's done, going up today. The strip barely moves a prose page but halves the bill on the link-heavy ones. Does your agent ever actually follow the links in a page it opens, or is it read-once-and-move-on like mine?