instant-markdown-editor
v0.1.0
Published
ProseMirror-based markdown editor (Typora-style).
Readme
instant-markdown-editor
ProseMirror-based Typora-style WYSIWYG Markdown editor.
Usage
import { createEditor } from "instant-markdown-editor";
import "instant-markdown-editor/style.css";
const editor = createEditor({
mount: document.querySelector("#editor")!,
initialMarkdown: "# Hello",
onChange(markdown) {
console.log(markdown);
},
});The root package entry exposes the runtime editor interface only. Spec runner helpers are available from instant-markdown-editor/specs for playground and behavior-test tooling.
