What is mdast-util-from-markdown and when to use it?
mainmdast-util-from-markdown is a utility that converts markdown input into an mdast (Markdown Abstract Syntax Tree) using micromark as the underlying parser.
When to use this:
- Use this if you want to handle syntax trees manually.
When NOT to use this:
- If you just want to turn markdown into HTML, use
micromarkinstead. - If you want an easier time processing content via a high-level ecosystem, use remark instead.
This package is a low-level building block used by remark-parse to abstract away the tokenization process.