- Notifications
You must be signed in to change notification settings - Fork56
Markdown formatting buttons for text inputs.
License
NotificationsYou must be signed in to change notification settings
github/markdown-toolbar-element
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Markdown formatting buttons for text inputs.
$ npm install --save @github/markdown-toolbar-element
import'@github/markdown-toolbar-element'
<markdown-toolbarfor="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><buttondata-md-button>Custom button</button></markdown-toolbar><textareaid="textarea_id"></textarea>
<markdown-toolbar>
comes with focus management as advised inWAI-ARIA Authoring Practices 1.1: Toolbar Design Pattern. Themd-*
buttons that ship with this package are automatically managed. Add adata-md-button
attribute to any custom toolbar items to enroll them into focus management.
Browsers without nativecustom element support require apolyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
npm installnpm test
Distributed under the MIT license. See LICENSE for details.
About
Markdown formatting buttons for text inputs.
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.