@pemrouz/markdown-editor
v2.1.1
Published
[![image](https://img.shields.io/badge/component-vanilla-green.svg?style=flat-square)](https://github.com/pemrouz/vanilla/#vanilla) [![Build Status](https://travis-ci.org/pemrouz/markdown-editor.svg)](https://travis-ci.org/pemrouz/markdown-editor) [![Co
Downloads
13
Readme
Markdow Editor/Previewer
GitHub-esque Markdown Editor and Markdown Previewer using CommonMark (Remarkable).
The Markdown Editor includes a previewer inside it. To see a preview, simply press
Alt+P
andEsc
to resume editing.By default, the styles look like the GitHub flavour but you can reset this by adding the
simple
class to the element.Any text pasted in which has hidden HTML elements (not HTML as plain text) will be intercepted and pasted in as
text/plain
.
Usage
markdown-editor
State
value = ''
: The (markdown) text value of the componentpreview = false
: Whether the component is in preview or edit mode
markdown-preview
State
value = ''
: The (markdown) text value that is displayed