Skip to content

mdastic@0.4.0

Choose a tag to compare

@remorses remorses released this 02 Nov 20:04
· 18 commits to main since this release
  1. New createProcessor({ syntax, transforms, stringify }). One syntax list for parse and stringify, plus (tree) => void transforms that run after every parse.
  2. createStreamParser({ transforms }). Block-local transforms run once on each settled block and on the live tail; every result equals createProcessor(...).parse(text).
  3. New unravel(tree) in mdastic/mdx. Unwraps paragraphs of only JSX and expressions into flow nodes, like @mdx-js/mdx's remark-mark-and-unravel.
  4. visit accepts [SKIP, index], like unist-util-visit: skip the node's children and continue at index.
  5. Types assign to @types/mdast. MdxjsEsm is now only in RootContent, not FlowContent, matching mdast-util-mdxjs-esm, so mdastic trees are assignable to mdast trees.