Docs
Serializing Markdown
Serializing Markdown
Copy paste from Markdown to Slate.
Loading...
Installation
npm install @udecode/plate-serializer-md
Usage
Markdown -> Slate
import { createDeserializeMdPlugin } from '@udecode/plate-serializer-md';
const plugins = [
// ...otherPlugins,
createDeserializeMdPlugin(),
];
Slate -> Markdown
Use remark-slate.
API
createDeserializeMdPlugin
Options
Collapse all
Object where each key is a Markdown syntax element type and the value is a transformation function.
Object where each key is a Markdown syntax text type and the value is an object providing optional mark and transform functions.