P0 baseline: one Markdown parser, one frozen option set, no silent upgrades. - profile: CommonMark 0.31.2 core + GFM tables/strikethrough/task lists + dollar math + YAML front matter at byte 0, with every other extension disabled and asserted by tests. comrak is pinned to exactly 1.0.0. - ast::MdNode: owned, serializable node tree carrying kind, byte Span and literal payloads. Nodes outside the profile are preserved as MdKind::Other instead of being dropped; task list items keep their checkbox state. - frontmatter: extracts the YAML body from the parser node, parses it once, and exposes only the explicit `import` alias mapping; invalid YAML is reported, never guessed. - text: strict executable payload extraction (Text/Code only, everything else is a hard error) and inert plain-text extraction for heading names. - UTF-8 BOM is tolerated; all spans are re-based onto the original file. No semantic mapping or execution exists in this crate by design.
Marqdo CLI — next-generation design starter
Design-only starter package. This archive does not contain an executable CLI or a completed Rust implementation.
Marqdo aims to be a Markdown-native, independently interpreted programming language: Markdown AST structures carry program control semantics; readable prose can coexist with execution, while runtime effects are explicit and controlled. The new toolchain is independent of the original cflmy/marqdo repository.
Read first
docs/DEVELOPMENT_BLUEPRINT.md— the comprehensive Chinese design and development specification: motivation, formal mapping, functions/parameters/calls/returns, execution, references, Math/Foreign kernels, environment and package manager, sandbox, plugin ABI/SDK, milestones, tests and related projects.AGENTS.md— succinct onboarding instructions for coding agents and new contributors.
Planned CLI surface
marqdo init
marqdo run index.mq.md
marqdo call index.mq.md main
marqdo check index.mq.md
marqdo inspect index.mq.md --ast
marqdo add <package>
marqdo lock && marqdo sync
marqdo plugin inspect <artifact>
These commands are planned APIs, not yet available in this starter package. Begin by implementing P0 tests and a reference Markdown AST explorer; do not start with a monolithic CLI or port old parser heuristics.
Design status
The language direction and architecture principles have been selected. Detailed proposals still require ADRs and conformance testing before a stable version. See blueprint section 17 for unresolved items and section 18 for the Alpha definition of done.