Ask HN: If HTML supersedes Markdown fr AI, Will it be versatile enough for devs?
Isn't Markdown's hallmark its versatility while performant?
I see there is an increasing call from tech community towards HTML to be adopted instead of Markdown due to its richness in the agentic communication layer. But is it versatile across any kind of interfaces? versatile with different format conversions? and performant (as the md is lightweight)?
What do you mean if? The internet is built on html. Markdown is a random flare up of an annoying annotation standard pushed by LLMs. No one used Markdown anywhere near at the scale of html before ChatGPT
Thats a complete reductive idea of MDs. MD was long spawn before LLMs as a need for light weight formatting and easy conversion to different formats. No one used at that scale doesnt mean the absence of the utility for it, as the primary adopters were tech community and that was a layer below the consumer market. Utility obviously stands, the question is, can HTML supersede on that utility side of it in all developer work components.
Yeah, Reading it clearly in the editor - Probably MD to HTML happens in the editor anyway. So what we are dealing with here are a battle between ease of writing, readability and various cost dimensions.
A) Who cares? What performance are you even talking about? Number of tokens?
B) HTML can contain data, layout, and design within a single file. Markdown isn’t comparable. There will be many situations where Markdown can’t do what HTML, so this is overall a silly comparison.
A) Enterprises for one, e.g Rendering of an HTML page vs MD in an AI IDE or even tokens (compounding costs for a communication doc may be billions in a year)
B) True, its a subset, nobody is arguing against it. HTML has overheads in terms of stylings. MD in essence is just a straight arrow.
If there is a communication between two points with ultimate low latency way with readability and threshold just enough to have the idea, MD passes that mark. As tokens needs to conserved
What do you mean by the cost of rendering an HTML page in an IDE? You know those markdown previews are almost always rendered by converting them to an HTML snippet first, right? Also HTML does not need to be styled, the tags have their own semantic meanings just like the various semantic structures of markdown. The styling “overhead”, which gets added so the document is easier to visually interpret for a human, is exactly the same. The only time when styling doesn’t come into the equation is when you directly view markdown source.
If cost of showing HTML and MD are same in the CPU level for UI, but generation of them costs uneven at AI level (as it should be mathematically), shouldn't the equation be what is the lowest cost to represent something considering the token usage
depending on your tooling, editing and viewing html won't be a problem in the slightest and opens up all kinds of possibilities
personally very excited to introduce more html into my docs process
HTML is a communication layer. Hardly anyone is writing it directly. Using React etc. or whatever or even LLM.
B) HTML can contain data, layout, and design within a single file. Markdown isn’t comparable. There will be many situations where Markdown can’t do what HTML, so this is overall a silly comparison.
If there is a communication between two points with ultimate low latency way with readability and threshold just enough to have the idea, MD passes that mark. As tokens needs to conserved
Also, latency???