@remirror/extension-markdown
v3.0.1
Published
Generate markdown output from your editor
Downloads
145,274
Readme
@remirror/extension-markdown
Output markdown from your editor
Installation
# yarn
yarn add @remirror/extension-markdown
# pnpm
pnpm add @remirror/extension-markdown
# npm
npm install @remirror/extension-markdown
Why
This extension adds support for converting your Prosemirror content to markdown.
This works by transforming the markdown content you provided into html and then using the built in DOMParser to transform the html to a ProseMirror node.
Usage
The following code creates an instance of this extension.
import { MarkdownExtension } from 'remirror/extensions';
const extension = new MarkdownExtension();