@mdwrk/markdown-editor-core
v1.1.6
Published
Portable source-mode markdown editor state, selection transforms, command model, and undo/redo history for MdWrk.
Maintainers
Readme
@mdwrk/markdown-editor-core
Headless markdown editing primitives
This package exposes the command, selection, transform, and history logic behind the MdWrk editing experience.
Why
Use it when you need markdown editing semantics without committing to a specific UI implementation.
What
- Built-in markdown editing commands.
- Selection and transform helpers.
- Undo and redo history state management.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/markdown-editor-coreUsage
import { applyBuiltinMarkdownCommand, createSelection } from "@mdwrk/markdown-editor-core";
const result = applyBuiltinMarkdownCommand(
"bold",
"hello",
createSelection(0, 5),
);Related
- Packages index - family and package navigation
- Root README - repo overview
