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.
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.
I don't think Gopher even allows reflowing text? I think all of the gopherholes I've seen were hard-wrapped. Pretty much anything is an improvement over that. Likewise, I think links can only span an entire line (same as in gemtext). Markdown doesn't have that (major) limitation.
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?
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.
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.
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!
splitbrain | 5 hours ago
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.
chrismorgan | 2 hours ago
… which is equivalent to https://demo.bonbonweb.org/ (that’s its default page), which was submitted four days ago, https://lobste.rs/s/w78jvi/markdownweb.
fanf | 5 hours ago
previously
FRIGN | 5 hours ago
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:
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.
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.
dzwdz | 53 minutes ago
I don't think Gopher even allows reflowing text? I think all of the gopherholes I've seen were hard-wrapped. Pretty much anything is an improvement over that. Likewise, I think links can only span an entire line (same as in gemtext). Markdown doesn't have that (major) limitation.
jmmv | 5 hours ago
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?
gerikson | 5 hours ago
gunduzc | 4 hours ago
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 | 2 hours ago
Also super easy to read on the command line with curl, pandoc and less:
m_eiman | 2 hours ago
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 | an hour ago
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 | 51 minutes ago
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!