{"library":"mdast-util-heading-range","type":"library","category":null,"description":"mdast-util-heading-range is a utility for working with Markdown Abstract Syntax Trees (MDAST) to identify and manipulate content sections defined by headings. It allows developers to find a specific heading, capture all content nodes within its section (up to the next heading of the same or lower depth, or the end of the document), and then apply a handler function to modify or replace that content. The current stable version is 4.0.0, released in a mostly ad-hoc fashion following the syntax-tree ecosystem's release schedule, typically with minor versions for features and patch versions for fixes. Key differentiators include its focus on heading-based content segmentation, offering a programmatic way to update generated sections (like a Table of Contents), and its integration within the broader `unified` and `remark` ecosystem. It is an ESM-only package since version 3.0.0 and requires Node.js 16 or higher as of version 4.0.0.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","unist","mdast","mdast-util","util","utility","markdown","heading","range","typescript"],"install":[{"cmd":"npm install mdast-util-heading-range","imports":["import { headingRange } from 'mdast-util-heading-range'","import type { Info } from 'mdast-util-heading-range'","import type { Handler } from 'mdast-util-heading-range'"]},{"cmd":"yarn add mdast-util-heading-range","imports":[]},{"cmd":"pnpm add mdast-util-heading-range","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/mdast-util-heading-range","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mdast-util-heading-range","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mdast-util-heading-range/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}