Y
Hacker News
new
|
ask
|
show
|
jobs
by
tannhaeuser
2656 days ago
XML/SGML is highly appropriate for representing rich text, though, which is the purpose of chat apps/logs. Using JSON you'd have to invent ad-hoc markup on top of JSON, loosing any advantage it may have.
2 comments
JeremyBanks
2656 days ago
Nobody uses rich text formatting, and even if they did, the message body is only a small fraction of the total protocol content.
link
Boulth
2656 days ago
> Using JSON you'd have to invent ad-hoc markup on top of JSON
That's basically a description of ActivityPub that wraps HTML in JSON!
link
hedora
2656 days ago
Will activitypub let me do:
<body> markdown text </body>
And ship some js to convert to html?
link
Boulth
2655 days ago
No, each server has their own rules what and how will they present content. Usually they accept limited subset of HTML and filter out everything else.
link