Back to Explore

syntax-tree/mdast-util-to-string

GitHub
1 watchersOpen source

Last release: 7/7/2023

mdast-util-to-string is a small utility that extracts plain text from an mdast node (or list of nodes) by returning the node’s textual fields, or otherwise serializing its children. It’s useful when you have Markdown AST content and need the heading or other node text without converting the whole Markdown. It also supports options like including image alt text and HTML values.

Project status

  • Upstream is a maintained GitHub-hosted utility (mdast-util-to-string), last observed upstream push on 2024-04-30, but the most recent versioned updates shown are from 2023.
  • Update cadence appears moderate in 2023, with updates landing on 2023-01-25 (3.1.1), 2023-04-03 (3.2.0), and 2023-07-07 (4.0.0), followed by a longer quiet period with no further versioned updates evidenced in the provided list.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 4.0.0

    7/7/2023

    Release 4.0.0 modernizes mdast-util-to-string for newer Node.js and packaging conventions. It adds a package.json exports mapping and raises the Node.js requirement to 16, along with corresponding build/test configuration updates.

    Breaking
  • 3.2.0

    4/3/2023

    Release 3.2.0 adds a new `includeHtml` option to control whether HTML node `value` is included in the output. The implementation routes the new option through the serialization logic and adds a test to cover HTML exclusion.

    Features
  • 3.1.1

    1/25/2023

    Release 3.1.1 is primarily described as documentation and refactoring related to code style, plus a tsconfig.json update. However, the actual code diff shows a functional refactor that changes how the includeImageAlt option is interpreted at runtime.