micromark-util-combine-extensions is a dedicated utility package within the unified collective, designed to efficiently merge multiple micromark syntax extensions or HTML extensions into a single, cohesive extension object. This functionality is crucial for creating and managing markdown processing presets, such as `micromark-extension-gfm`, which bundle several individual extensions into a convenient package. The package is currently at version 2.0.1, which is compatible with Node.js 16+ and works specifically with `micromark@3`. As a component of the `micromark` monorepo, its release cadence generally aligns with the broader `micromark` project, which sees regular updates for performance and bug fixes across its various components. Its primary differentiator is its singular focus on extension combination, providing a streamlined API (`combineExtensions`, `combineHtmlExtensions`) that simplifies complex extension management for developers building custom markdown processing pipelines.
npm install micromark-util-combine-extensionsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to combine multiple individual micromark syntax extensions into a single extension object using `combineExtensions` for easier management and use with the `micromark` parser.
Migrate your project to use ES modules (`import`) or use a build tool like Rollup or Webpack to handle ESM imports in a CommonJS context.
Ensure your project explicitly lists `micromark@3` as a dependency or peer dependency and that your installed version matches this requirement.
Always refer to the documentation for each individual micromark extension to confirm whether it needs to be called as a function or passed directly as an object.
Change your import statement to `import { combineExtensions } from 'micromark-util-combine-extensions'`.Ensure your build configuration correctly handles ESM modules. Verify that you are using a named import `import { combineExtensions }` and not a default import `import combineExtensions`.Call the extension as a function: `gfmStrikethrough()` instead of `gfmStrikethrough` when adding it to the array for `combineExtensions`.