Grilling: reading renderer scope v1 #69
Notifications
Due Date
No due date set.
Blocks
#71 Task: land the reading toggle build
AlexKucera/museion
Reference: AlexKucera/museion#69
Reference in new issue
Block a user
Part of #20
Question
Which markdown constructs does the v1 reading renderer actually render, and what does an unrendered construct fall back to? The spike renderer does: blank-line split → per-paragraph
AttributedString(markdown:)inline parse (emphasis, links, inline code) → headings fonted by level. Decide per construct:---,***) — the styled-source presenter already draws a rule for***; what does reading do?Constraint: every answer must keep PERF-3k hitch-free and the toggle round-trip byte-stable (rendering never touches the file). The corpus is the ceiling for what MUST work; constructs absent from it are judgment calls — record each as rendered/fallback with a one-line why.
[Generated by AI]
Resolution
Resolved live with Alexander over two rounds, 2026-10-05. Vocabulary fixed first: "rendered" = the construct appears in its real form (pipes become a grid, markers vanish); "fallback" = the block shows its raw source text in the editing treatment (body serif, dimmed mono syntax marks). Nothing hidden, nothing broken — just untransformed.
Rendered in v1
^\s*[-*]is list-detected; one inlineAttributedString(markdown:)parse per item.1. 1. 1.renders 1, 2, 3; each nesting level restarts at 1. Numbers are drawn as glyphs by a sequential counter (cheaper than preserving source numbers). Byte-stability holds: rendering only — the file's source numbering is never rewritten.#/##as today;###becomes a scaled third level (Iowan bold ≈17–18pt, tighter than H2's 20);####+ floors at bold body. Calibration piece carries 26###headings — they must read as structure.syntaxOnlymatcher reused verbatim (* * *,---,***,___,- - -all match); reading draws a hairline divider at body-paragraph rhythm. Same predicate both modes = one mental model.>never visible; nested>>indents deeper via the same path.NSTextTablein the paragraph style. Column alignment from the delimiter row honored if cheap at build time, else left-aligned — builder's call, flag it in the build resolution.Fallback in v1 (only one left)
[^1]marks, the editing treatment. Deferred on Alexander's call ("don't really use them").Invisible in reading mode
session.text, which is already body-only. Zero code.Corpus facts — corrected and extended
The map's "no italics" claim was wrong:
_emphasis_italics are present in 3 of 9 files including the calibration piece and PERF-3k (inline parse already covers them — no structural change, but calibration exercises italics).###headings: 26 in the calibration piece, same in PERF-3k. Still absent from the corpus: ordered lists, blockquotes, fenced code, tables, footnotes, images — hence the kitchen-sink post:spike/prose/kitchen-sink.md(half-page exercising ordered + nested + auto-numbered lists, one pipe table, one blockquote, one fenced code block, one image link). Calibration (#72) reads it alongside the calibration piece; the PERF gate stays PERF-3k unchanged (prose throughput; kitchen-sink gates construct rendering).Parked
Frontmatter editing (Obsidian-style custom fields, popup or in-editor) — out of scope for this map; parked in the map's Out of scope with a pointer to #59's write-side vocabulary record.
Build-note for #71: the list machinery (ordered + nesting + auto-renumber) is one rendering path, not three features — the counter makes renumbering free. Constraints carried: PERF-3k hitch-free, toggle round-trip byte-stable, rendering never touches the file.
[Generated by AI]