@mdwrk/markdown-editor-react
v1.1.6
Published
React bindings, textarea editor surface, command wiring, history integration, and theme bridge for the MdWrk portable markdown editor.
Downloads
315
Maintainers
Readme
@mdwrk/markdown-editor-react
React source editor component
This package provides the textarea-based MdWrk source editor component on top of the editor core primitives.
Why
Use it when you need a React authoring surface with built-in commands, line numbers, selection handling, and history.
What
- A
MarkdownSourceEditorReact component. - Theme-style helpers and public editor types.
- Re-exported editor-core primitives for convenience.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/markdown-editor-react @mdwrk/markdown-editor-coreUsage
import { MarkdownSourceEditor } from "@mdwrk/markdown-editor-react";
import "@mdwrk/markdown-editor-react/styles/default.css";
export function Editor() {
return <MarkdownSourceEditor defaultValue={"# Draft\n\nStart typing..."} />;
}Related
- Packages index - family and package navigation
- Root README - repo overview
