@remirror/extension-markdown

Generate markdown output from your editor

Usage no npm install needed!

<script type="module">
  import remirrorExtensionMarkdown from 'https://cdn.skypack.dev/@remirror/extension-markdown';
</script>

README

@remirror/extension-markdown

Output markdown from your editor

Version Weekly Downloads Bundled size Typed Codebase MIT License

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();