mockitdown Implementation
How the code on main realizes the specification: its modules and
data flow, how it is tested, how packs are authored, and how the package and the documentation are
built and published. Pages cite the architecture elements (A-…) and requirements (R-…) they
realize.
| Page |
Contents |
| Architecture overview |
Package layout, data flow of one block, module map, known debt |
| Syntax · Evaluation · Packs · Rendering · Styles and assets · Markdown integration · Command line |
One page per module group |
| Repository layout and shared assets |
python/, typescript/, shared/; how the Python build copies the shared assets; the element reference JSON |
| Testing |
Unit tests, pack contract tests, the example site as end-to-end fixture |
| Pack authoring guide |
Writing or extending a pack |
| Build and publish |
Development setup, packaging, the documentation and example sites, GitHub Pages |
At a glance
|
|
| Language |
Python ≥ 3.11, standard library only in the core (ADR-12) |
| Package |
mockitdown (python/src/mockitdown/), MIT; shared assets in shared/ |
| Optional extra |
mockitdown[markdown]: Markdown 3.6–3, pymdown-extensions 10–13 |
| Entry points |
console script mockitdown; Python-Markdown extension mockitdown; fence mockitdown.fence.format / validate |
| Build |
.venv/bin/python -m pip install -e 'python[markdown]' (from the repository root) |
| Test |
cd python && ../.venv/bin/python -m unittest discover -s tests -t . |
| Docs |
this site, branch docs (worktree ../mockitdown.docs), built with Zensical |
Revision history
| Version |
Date |
Change |
| 0.1.0 |
2026-11-24 |
Implementation documentation written for the production code |
| 0.3.2 |
2026-11-25 |
Package path python/ 1 |