Docs
Serializing Markdown

Serializing Markdown

Copy paste from Markdown to Slate.

Deserialize Markdown

Copy and paste Markdown content from popular Markdown editors like markdown-it.github.io/ into the editor for easy conversion and editing.

Features

  • Convert Markdown content to a Slate value.

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.