Background
The mental model behind mdsmith — how flavor, rule, convention, and kind relate, how generated sections work, the placeholder grammar, and how it compares to other Markdown linters.
- The public
pkg/mdsmithengine API — aSessionthat owns workspace, compiled config, and parse caches — and how it mirrors one-to-one as WebAssembly JavaScript bindings, including the open method namespace, the cache contract, and the WASM size budgets and limits. - How “flavor” (a property of the renderer), “rule” (a single check), “convention” (a project-wide bundle), and “kind” (a per-file role tag) differ in mdsmith, the cases where they overlap, and how the four concepts compose.
- How generated sections work — markers, directives, and fix behavior.
- Core mdsmith concepts — the engine API, the flavor/rule/ convention/kind separation, the generated-section model, and the placeholder vocabulary.
- How the placeholder vocabulary lets rules treat template tokens as opaque rather than flagging them as content violations.
- How mdsmith compares to other Markdown linters.