Skip to content

mockitdown Specification

This specification states how mockitdown behaves: the mockup language, how a block is evaluated, the format of design packs, the HTML and CSS it produces, appearance and devices, images, icons and component imports, the Markdown integration, the command line, the library API and diagnostics. It realizes the features of the definition and is realized by the code on main, explained in the implementation.

Most requirements were written from the production code (marked reverse-engineered in their front matter); where the code departs from the intended behaviour, the requirement states the intent and its prose records a Known deviation.

How to read it

Part Pages
Orientation System overview — components, data flow, conformance
Language Syntax (R-LANG) · Semantics (R-EVAL) · Language reference (grammar, values, modifiers, live examples)
Packs Pack format (R-PACK) · Pack catalogue
Rendering Markup (R-REND) · Role catalogue · Markup and CSS contract · Appearance and devices (R-APP, R-DEV)
Resources Assets and icons (R-ASSET) · Component imports (R-IMP)
Integration Markdown extension and fence (R-MDX) · Site integration guide · Command line (R-CLI) · Library API (R-API)
Quality Diagnostics (R-DIAG)
Structure Core modules · Output and integration modules (A-…) · Model (M-…)
Decisions Notation and rendering (ADR-1 – ADR-7) · Integration and delivery (ADR-8 – ADR-14)
History Traceability to the prototype · Change history

Conventions. Requirements are R-<AREA>-nnn; each has numbered normative clauses C1, C2, … (EARS form with RFC 2119 keywords) and verification clauses V1, …, and may have test cases TC-n. Cite a clause as R-EVAL-005.C4. Architecture elements are A-<AREA>-n, model entities M-<AREA>-n, decisions ADR-n. Clause labels are permanent.

Revision history

Version Date Change
0.2.0 2026-11-24 First full specification, derived from the prototype and the production code
0.1.0 2026-01-01 Initialized