Skip to content
Markdown formatting buttons for text inputs.
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows use GitHub CI Sep 12, 2019
examples Fix closing tag in example page Nov 7, 2019
test Merge branch 'master' into image-button Sep 26, 2019
.babelrc Update for modern browsers Feb 20, 2019
.eslintrc.json Update for modern browsers Feb 20, 2019
.flowconfig Initial commit with the basics Jun 19, 2018
.gitignore Initial commit with the basics Jun 19, 2018
.travis.yml Add travis config Jun 20, 2018
LICENSE Initial commit with the basics Jun 19, 2018
README.md
index.d.ts types(ts): fix window declaration type Sep 12, 2019
index.js Merge branch 'master' into image-button Sep 26, 2019
index.js.flow add flow definition file for the element API May 13, 2019
package-lock.json 1.1.0 Sep 26, 2019
package.json 1.1.0 Sep 26, 2019
prettier.config.js Initial commit with the basics Jun 19, 2018

README.md

<markdown-toolbar> element

Markdown formatting buttons for text inputs.

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-image>image</md-image>
  <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

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

You can’t perform that action at this time.