包详细信息

@remirror/extension-markdown

remirror177kMIT3.0.2

Generate markdown output from your editor

remirror, extension

自述文件

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

#