Markdown formatting buttons for text inputs.
Перейти к файлу
Mu-An ✌️ Chiou b6cb25478e Initial commit with the basics 2018-06-19 15:41:49 -07:00
examples Initial commit with the basics 2018-06-19 15:41:49 -07:00
.babelrc Initial commit with the basics 2018-06-19 15:41:49 -07:00
.eslintrc.json Initial commit with the basics 2018-06-19 15:41:49 -07:00
.flowconfig Initial commit with the basics 2018-06-19 15:41:49 -07:00
.gitignore Initial commit with the basics 2018-06-19 15:41:49 -07:00
LICENSE Initial commit with the basics 2018-06-19 15:41:49 -07:00
README.md Initial commit with the basics 2018-06-19 15:41:49 -07:00
index.js Initial commit with the basics 2018-06-19 15:41:49 -07:00
package-lock.json Initial commit with the basics 2018-06-19 15:41:49 -07:00
package.json Initial commit with the basics 2018-06-19 15:41:49 -07:00
prettier.config.js Initial commit with the basics 2018-06-19 15:41:49 -07:00

README.md

<markdown-toolbar> element

markdown-toolbar buttons for textareas.

Installation

$ npm install --save @github/markdown-toolbar-element

Usage

import '@github/markdown-toolbar-element'
<markdown-toolbar for="textarea_id">
  <md-bold>bold</md-bold>
  <md-header>header</md-header>
  <md-italic>italic</md-italic>
  <md-quote>quote</md-quote>
  <md-code>code</md-code>
  <md-link>link</md-link>
  <md-unordered-list>unordered-list</md-unordered-list>
  <md-ordered-list>ordered-list</md-ordered-list>
  <md-task-list>task-list</md-task-list>
  <md-mention>mention</md-mention>
  <md-ref>ref</md-ref>
</markdown-toolbar>
<textarea id="textarea_id"></textarea>

Browser support

  • Chrome
  • Firefox
  • Safari 9+
  • Internet Explorer 11
  • Microsoft Edge

Development

npm install

License

Distributed under the MIT license. See LICENSE for details.