Markdown Toolbar Element Versions Save

Markdown formatting buttons for text inputs.

1.0.6

4 years ago

<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-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.

v1.0.5

4 years ago
  • Merge pull request #13 from github/add-typescript-definition-file 33c0857
  • use union type to include undefined and null 4709442
  • add typescript definition file c9ec083
  • run npm audit fix 2438bf6

https://github.com/github/markdown-toolbar-element/compare/v1.0.4...v1.0.5

v1.0.4

4 years ago
  • Merge pull request #12 from github/update-deps b2c6c3e
  • update eslint, eslint-plugin-github, flow-bin and babel-preset-github manually to latest versiosn 481e495
  • fix shadowed variable b8a6e49
  • run npm update a7f9be6

https://github.com/github/markdown-toolbar-element/compare/v1.0.3...v1.0.4

v1.0.3

5 years ago

v1.0.0

5 years ago

Tagging for stable release, no code changes.

v0.2.0

5 years ago
  • Drop IE 11 support

  • Stop transforming custom element classes