# ahotml v1 canonical core > status: approved scope, 20260816 UTC. this document governs the isolated implementation candidate only. it changes no live source. ## 1. identity **ahotml remains HTML.** It does not become Markdown, Gemtext, a template language, a web framework, or a spirit/agent protocol. The canonical core should make a small amount of line-oriented shorthand available inside an explicit `` element. The shorthand is an optional local JavaScript enhancement. Native HTML stays valid without it. | layer | role | v1 status | |---|---|---| | ahotml | HTML-native authoring and document core | canonical implementation target | | ahotml.js | dependency-free browser parser for optional shorthand inside `` | canonical implementation target | | pmd | existing white-space compatibility element | preserved; not grammar and not parsed | | md | prior optional experiment | not canonical; no new dependency or promise | | gemparser | future Gemtext-oriented translator | explicitly out of scope | | ahoml | future neutral source able to emit ahotml and/or Gemtext | explicitly out of scope | ## 2. non-goals The v1 core does not add a Gemini daemon, `.gmi` exporter, Markdown dependency, build step, account, cookie, analytics, framework, external font, runtime network request, or spirit/agent requirement. Wabisabi remains frozen until Cyril explicitly gives commission approval. ## 3. authored form A canonical opt-in block uses an explicit custom element. ```html # a small heading plain text with native html + a simple list item ``` Only `` blocks receive parsing. Existing ordinary HTML, ``, and any old `` material keep their previous behavior until deliberately rewritten. With JavaScript unavailable, an `` block remains visible in authored order with preserved whitespace. Native inline HTML follows normal browser behavior. The shorthand remains visibly literal, which is intentional: no parser means no invented rendered form. ## 4. v1 shorthand | authored line or span | parsed output | purpose | |---|---|---| | `#` through `######` plus text | `h1` through `h6` | document structure | | `+ ` plus text | semantic unordered list item | compact authored lists | | `` `code` `` | `code` | inline literal text | | `**bold**` | `b` | compact emphasis | | `*italic*` | `i` | compact emphasis | | opening/closing line of `` ``` `` | `pre > code` | literal multiline blocks | | any other non-empty line | `p` | readable body text | | empty line | visible paragraph separation | preserve authored rhythm | | native inline HTML | retained as HTML | links, images, and local semantic choice | The parser must not transform text inside native HTML attribute values. It must not alter text inside fenced code. Fenced code must use text nodes so content renders literally. ## 5. execution contract The parser uses only standard browser APIs. Its line classification stays isolated from rendering so a browser BAT can exercise it without framework or package. The browser renderer may use a `template` element and text-node traversal to preserve native inline HTML while applying inline shorthand only to text nodes. The core loads from a relative local path and performs no fetch, import, storage write, timer, network request, model call, or telemetry. The parser runs after DOM readiness and replaces only the content of explicit `` nodes. The browser BAT itself remains file-openable offline; a deterministic shell source check proves the parser contains no forbidden runtime primitive. ## 6. behavioral acceptance tests 1. The parser classifies headings levels one through six. 2. It recognizes `+` list items and groups consecutive items. 3. It toggles preformatted state with triple backticks and preserves code whitespace literally. 4. It leaves native link attributes unchanged while parsing text around the link. 5. It maps inline code, bold, and italic only in text nodes, not tag attributes. 6. It does not parse `` or ordinary HTML. 7. It makes no network/storage/model call by source inspection and offline execution. 8. The example page stays readable without JavaScript and uses no external dependency beyond optional same-origin presentation assets. 9. The browser BAT opens from a local checkout without package installation, and the source check uses standard shell tools only. ## 7. publishing and rollback The release follows the existing rule: candidate BAT → exact staged files → commit → publish both forges → verify branch and immutable tag → activate only published commit → live offline/browser proof. The preceding immutable tag remains the immediate rollback point. No Wabisabi tree participates.