@kalem-editor/core
v1.0.0
Published
Markdown AST, parser and lossless serializer — no DOM, zero dependencies
Maintainers
Readme
@kalem-editor/core
Markdown AST, parser and lossless serializer — no DOM, zero dependencies.
Part of Kalem — a WYSIWYG editor for people who don't know Markdown, that saves Markdown.
npm i @kalem-editor/coreimport { parse, serialize } from '@kalem-editor/core';
const md = '* a list written with asterisks\n';
const ast = parse(md); // an mdast-shaped tree
serialize(ast) === md; // true — the writing style is keptNo DOM, no dependencies — runs in the browser, Node, workers and at the edge.
Documentation, guides and the full API: see the Kalem repository.
License
MIT
