mdast-builder provides a set of composable functions designed to programmatically construct Markdown Abstract Syntax Tree (MDAST) structures. It simplifies the creation of complex MDAST nodes like headings, paragraphs, lists, and text, offering a more declarative way to build ASTs compared to direct object manipulation. The current stable version is 1.1.1, released in July 2019. The package appears to have an inactive release cadence, with no updates since mid-2019, suggesting it is no longer actively maintained. Its key differentiator is its functional, builder-pattern approach to MDAST generation, which can be particularly useful for generating Markdown content dynamically or within content management systems that utilize MDAST.
npm install mdast-builderVerified import paths — ran on the pinned version, not inferred.
Demonstrates building a simple MDAST tree with a heading, paragraph, and unordered list, then converting it to a Markdown string using `unified` and `remark-stringify`.
Evaluate alternatives like manually creating MDAST nodes or exploring more actively maintained AST manipulation libraries if active development or adherence to the latest specifications is crucial. For existing projects, consider vendoring the code if critical fixes are needed.
Update to version 1.1.1 or newer to ensure correct `table` alignment typing and functionality.
No dependency data recorded yet.