Good morning and welcome to my idea of a new web

10 points by spc476


splitbrain

This URL is meant to be read at https://demo.bonbonweb.org/?url=https%3A%2F%2Fdave.writersweb.org%2Findex.md otherwise the "Enter the URL of a Markdown file in the box at the top of the page.“ doesn't make much sense.

fanf

previously

FRIGN

Cool idea, but fully dropping HTML and stylesheets for everyone is too radical in my eyes. You will just end up with another Gopher. Why not allow the client to choose?

One could do this elegantly by simply using HTTP/1.1 content negotiation to the fullest: The client indicates its preference for markdown:

GET /about HTTP/1.1
Host: example.com
Accept: text/markdown;q=1.0, text/html;q=0.8, text/plain;q=0.5

The server confirms which format is served, making sure to also set the Vary header for proper caching. The Link header is used to advertise all alternative formats.

Content-Type: text/markdown; charset=utf-8
Vary: Accept
Link: </about>; rel="alternate"; type="text/html",
  </about>; rel="alternate"; type="application/json"

A server can return a 406 Not Acceptable if it cannot satisfy a requested content type.

And the client then can do whatever they like with the markdown (styling, etc.).

Advertising Markdown via link has actually started picking up pace insofar that CMSs/generators do this to accomodate AI crawlers not having to parse HTML. One may view this as they want, but this means that it's anything but obscure usage of the standard, and will 'work' within the current web.

jmmv

Did you read my mind???

As I have been playing with Gemini recently and feeling that gemtext missed the opportunity of being just a bit more featureful for semantic makeup, this same idea came to mind, so I like it!

But on my phone, clicking the link just gives me a Markdown doc, unrendered. What am I missing?

gunduzc

I really like this idea. My only question is, "does it have LaTeX for math"? If it does, it fits. Maybe syntax highlighting for talking about code, but that's hard to standardize, so I guess it'd be left to the hypothetical browser.

I'd be very happy to see the traditional, massive, unbootstrappable web abandoned in favor of something like this. It won't happen, but it would be nice. The bonus is that we would get to keep TLS and our security infrastructure.

kmaasrud

Also super easy to read on the command line with curl, pandoc and less:

curl https://dave.writersweb.org/index.md | pandoc -f markdown -t ansi | less -FRX
m_eiman

Is it possible to make a Firefox addon that renders text/markdown content to HTML? Seems like the easier way to get something like this going.

dzwdz

Why base this on Markdown, which is split up into a million dialects, many of which allow embedding HTML (and so they require parsing HTML to view it without losing formatting)? The author does strip any HTML (probably creating yet another dialect of Markdown in the process), but they don't otherwise specify which dialect you're supposed to use - so websites will end up incompatible between browsers.

There are much better formats out there already. Djot, maybe?

It also seems like pages can include YAML front matter - which is typical for Markdown documents, but isn't YAML also relatively hard to parse? It feels like it could be replaced with something simpler.


also, checking the git repo, it seems like parts of the spec might be written by Claude? (at least I assume that's what this issue is, I'm not really sure)

zesterer

Oh, nice! I've been saying for a while that browsers should have native support for rendering markdown docs, it's nice to see somebody else saying it too!