fix(web): standalone .spl pages render SPL source as Markdown prose (no code block, no h1) #77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Standalone
.splpages are rendered by running the raw SPL source through the Markdown renderer, producing flowing prose paragraphs:;comments and s-expressions get merged into the same paragraph, all code structure (indentation, one form per line) is lost, and the page has noh1title.Found during UAT of v0.9.3 (
zetl serveon the bundled demo-vault).Reproduction
cd demo-vault && zetl serve --port 3777http://localhost:3777/theories/caching/(source:theories/caching.spl).Actual
; Cache is mtime-based (from architecture/Cache.md) (given mtime-based-cache) (given incremental-rebuild).<pre>/code block anywhere on the page (main pre→ none).h1(main h1→ null), unlike.mdpages which render their title heading.Since Markdown interprets the source, SPL files containing
#,---,*,[[...]]etc. at line starts will silently turn into headings/rules/lists.Expected
Either render
.splsource as a preformatted code block (with the existing line anchors kept — those work today and search deep-links rely on them), or as a deliberate structured SPL view. Also emit the page titleh1like.mdpages get.Environment
zetl 0.9.3,
zetl serve, demo-vault, Chromium 140.