{"id":13907373,"url":"https://github.com/github/markdown-toolbar-element","last_synced_at":"2025-05-14T14:09:36.633Z","repository":{"id":37542195,"uuid":"136965915","full_name":"github/markdown-toolbar-element","owner":"github","description":"Markdown formatting buttons for text inputs.","archived":false,"fork":false,"pushed_at":"2025-03-05T22:18:45.000Z","size":929,"stargazers_count":375,"open_issues_count":5,"forks_count":56,"subscribers_count":304,"default_branch":"main","last_synced_at":"2025-04-11T21:06:40.928Z","etag":null,"topics":["custom-elements","markdown","web-components"],"latest_commit_sha":null,"homepage":"https://github.github.com/markdown-toolbar-element/examples/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-11T18:33:24.000Z","updated_at":"2025-04-09T00:02:07.000Z","dependencies_parsed_at":"2024-03-01T18:29:45.198Z","dependency_job_id":"5ad5fddd-dd9b-4613-9b65-a4c5d1e58f4d","html_url":"https://github.com/github/markdown-toolbar-element","commit_stats":{"total_commits":205,"total_committers":18,"mean_commits":11.38888888888889,"dds":0.7804878048780488,"last_synced_commit":"b89a39ddfe3fce1d45f0bdb30ed9b10b92c2d7ad"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fmarkdown-toolbar-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fmarkdown-toolbar-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fmarkdown-toolbar-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fmarkdown-toolbar-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/markdown-toolbar-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160427,"owners_count":22024568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-elements","markdown","web-components"],"created_at":"2024-08-06T23:01:54.613Z","updated_at":"2025-05-14T14:09:31.624Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# \u0026lt;markdown-toolbar\u0026gt; element\n\nMarkdown formatting buttons for text inputs.\n\n## Installation\n\n```\n$ npm install --save @github/markdown-toolbar-element\n```\n\n## Usage\n\n```js\nimport '@github/markdown-toolbar-element'\n```\n\n```html\n\u003cmarkdown-toolbar for=\"textarea_id\"\u003e\n  \u003cmd-bold\u003ebold\u003c/md-bold\u003e\n  \u003cmd-header\u003eheader\u003c/md-header\u003e\n  \u003cmd-italic\u003eitalic\u003c/md-italic\u003e\n  \u003cmd-quote\u003equote\u003c/md-quote\u003e\n  \u003cmd-code\u003ecode\u003c/md-code\u003e\n  \u003cmd-link\u003elink\u003c/md-link\u003e\n  \u003cmd-image\u003eimage\u003c/md-image\u003e\n  \u003cmd-unordered-list\u003eunordered-list\u003c/md-unordered-list\u003e\n  \u003cmd-ordered-list\u003eordered-list\u003c/md-ordered-list\u003e\n  \u003cmd-task-list\u003etask-list\u003c/md-task-list\u003e\n  \u003cmd-mention\u003emention\u003c/md-mention\u003e\n  \u003cmd-ref\u003eref\u003c/md-ref\u003e\n  \u003cbutton data-md-button\u003eCustom button\u003c/button\u003e\n\u003c/markdown-toolbar\u003e\n\u003ctextarea id=\"textarea_id\"\u003e\u003c/textarea\u003e\n```\n\n`\u003cmarkdown-toolbar\u003e` comes with focus management as advised in [WAI-ARIA Authoring Practices 1.1: Toolbar Design Pattern](https://www.w3.org/TR/wai-aria-practices-1.1/examples/toolbar/toolbar.html). The `md-*` buttons that ship with this package are automatically managed. Add a `data-md-button` attribute to any custom toolbar items to enroll them into focus management.\n\n## Browser support\n\nBrowsers without native [custom element support][support] require a [polyfill][].\n\n- Chrome\n- Firefox\n- Safari\n- Microsoft Edge\n\n[support]: https://caniuse.com/#feat=custom-elementsv1\n[polyfill]: https://github.com/webcomponents/custom-elements\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fmarkdown-toolbar-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fmarkdown-toolbar-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fmarkdown-toolbar-element/lists"}