@complear/lexical-numbered-nodes
v0.1.1
Published
Reusable Lexical custom nodes for numbered blocks and numbered headings
Downloads
166
Readme
@complear/lexical-numbered-nodes
Reusable Lexical custom nodes for numbered blocks and numbered headings.
This package is intentionally limited to generic formatting and Lexical node behavior. It contains no Complear product/domain logic and no API, auth, persistence, or organization/project/item-specific code.
Contents
NumberedBlockNodeNumberedHeadingNode- helper factory/type-guard functions
- small utility functions for heading-tag normalization and numeric-prefix detection
Installation
npm install @complear/lexical-numbered-nodesPeer Dependencies
Host apps must provide matching Lexical versions:
lexical@lexical/rich-text
Usage
import {
NumberedBlockNode,
NumberedHeadingNode,
$createNumberedBlockNode,
$createNumberedHeadingNode,
} from "@complear/lexical-numbered-nodes";
const nodes = [NumberedHeadingNode, NumberedBlockNode];Release / Publish
- Ensure npm access to the
@complearscope:
npm whoami- Bump version in
package.json. - Publish:
npm run publish:npmprepublishOnly runs the package build before publish.
