MyST Spec (myst-spec v0.0.5) formalizes the MyST (Markedly Structured Text) abstract syntax tree (AST), markup syntax, and HTML output for computational documents. It is currently in active development and may change without notice. The spec extends CommonMark and mdast (used by unifiedjs), and includes JSON schemas and test cases. It is designed for JupyterBook and similar tools, aiming for cross-language interoperability unlike single-implementation alternatives.
npm install myst-specNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MyST AST with a heading and paragraph using exported types.
Pin to a specific patch version and regularly update as spec stabilizes.
Use import statements instead of require() and ensure your project is configured for ESM (e.g., type: 'module' in package.json).
This is a type-only and schema package. Do not expect to import executable code.
Convert to import syntax or use dynamic import() in a CommonJS context.
Use Myst as a type annotation only (e.g., const x: Myst = ...).
No dependency data recorded yet.