Commit graph

6 commits

Author SHA1 Message Date
randogoth
c9bde15f5c feat: let a site render its xhtmlmp/html output as a Mews Profile page
All checks were successful
CI / check (push) Successful in 48s
CI / release (push) Successful in 6m48s
A new mews_profile site setting switches the XHTML-MP 1.2 doctype, the
conformance marker, the viewport tag and the default stylesheet link, and
drops raw HTML passthrough and off-site or data: images that the profile's
permitted-element list cannot vouch for.
2026-10-11 09:07:54 +03:00
randogoth
603f29b0f0 feat: gate a run of blocks to chosen output formats 2026-10-09 16:40:21 +03:00
randogoth
088e860cad fix: a hard break between links is still only links
The gemtext renderer prints a bare => line for a paragraph holding nothing but
links, which is what lets a generator emit a navigable menu. is_only_links
tolerated soft breaks but not hard ones, so a generator had to choose: soft
breaks and a clean gemtext menu, or hard breaks and a menu that does not run
together on the formats that lay a paragraph out inline.

That was a false choice. A hard break between links is still a run of nothing
but links, and the inline formats already turn it into <br/>. Without this,
asking for the break made gemtext read the paragraph as prose and print its
flattened text alongside the => lines, listing every entry twice.

Found serving a real capsule: six area links rendered as one run-on line in a
browser and on a handset while gemtext looked perfect.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-06 09:41:26 +03:00
randogoth
49a63503d0 fix: bound document nesting and escape generated urls 2026-10-04 22:30:44 +03:00
randogoth
9e1cfed284 feat: render fixed-width text for nex 2026-10-04 20:27:29 +03:00
randogoth
2f38b8b929 feat: serve rendered pages over http, spartan and nex 2026-10-04 19:55:30 +03:00