3.0.0-alpha.3 • Published 7 months ago
markdown-plus v3.0.0-alpha.3
Markdown Plus
A React markdown editor and previewer.
Online Demo
Installation
yarn add markdown-plus
Usage
import MarkdownPlus from 'markdown-plus';
<MarkdownPlus markdown="# Hello world!" />;
props
markdown
Initial markdown text to load into the editor.
<MarkdownPlus markdown="# Hello world!" />
Default value is ''
.
toolbar
Show, hide or remove toolbar.
<MarkdownPlus toolbar="show" />
3 possible values:
show
: show toolbar.hide
: hide toolbar, show a gutter on top. Click the gutter to show toolbar.none
: no toolbar, no gutter.
Default value: none
.
mode
Display editor, preview or both.
<MarkdownPlus mode="both" />
3 possible values:
both
: show both editor and previeweditor
: show editor onlypreview
: show preview only
Default value: both
.
theme
Overal theme: light, dark or auto:
<MarkdownPlus theme="auto" />
3 possible values:
light
: light themedark
: dark themeauto
: same as system theme
Default value: auto
.
3.0.0-alpha.1
7 months ago
3.0.0-alpha.3
7 months ago
3.0.0-alpha.2
7 months ago
2.5.2
8 years ago
2.5.0
8 years ago
2.4.4
8 years ago
2.4.3
8 years ago
2.4.2
8 years ago
2.4.1
8 years ago
2.4.0
8 years ago
2.2.3
8 years ago
2.2.2
8 years ago