micromark-util-subtokenize is a low-level utility within the micromark ecosystem, designed to handle the internal process of tokenizing subtokens during markdown parsing. It provides the `subtokenize` function, which is crucial for extending micromark with custom parsing behaviors, particularly for nested content or specific markdown constructs. This package is currently at version 2.1.0 and is actively maintained as part of the unified collective's micromark project. Releases are typically coordinated with other micromark packages, following a frequent cadence in response to bug fixes, performance improvements, and new feature development within the core parser. Its primary differentiator is its specialized role in the micromark parsing pipeline, making it essential for advanced extension authors rather than direct end-user application.
npm install micromark-util-subtokenizeVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how `subtokenize` is typically used within a micromark resolver function to process nested token events.
Ensure your project is configured for ESM (e.g., `"type": "module"` in `package.json`) or use dynamic `import()` if you must consume it from CommonJS.
Consult the `micromark` extension development guide before using this utility directly. Most users should interact with `micromark` through its main API or higher-level utilities.
Upgrade your Node.js environment to version 16 or newer and ensure your `micromark` dependency is version 3 or higher for full compatibility.
Always use the latest patch release of `micromark-util-subtokenize` (currently 2.1.0) to ensure stability and benefit from bug fixes and performance improvements.
Switch to `import` statements and ensure your project or file is treated as an ES module. For example, add `"type": "module"` to your `package.json` or use `.mjs` file extensions.
Ensure you are using named imports: `import { subtokenize } from 'micromark-util-subtokenize'`. This package has no default export.No dependency data recorded yet.