Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notlmn/copy-as-markdown
🖱 Browser extension to copy hyperlinks, images, and selected text as Markdown with GFM support
https://github.com/notlmn/copy-as-markdown
browser-extension chrome-extension firefox-addon html-to-markdown markdown
Last synced: 1 day ago
JSON representation
🖱 Browser extension to copy hyperlinks, images, and selected text as Markdown with GFM support
- Host: GitHub
- URL: https://github.com/notlmn/copy-as-markdown
- Owner: notlmn
- License: mit
- Created: 2019-06-27T06:25:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T11:15:13.000Z (2 months ago)
- Last Synced: 2024-12-19T10:13:53.276Z (4 days ago)
- Topics: browser-extension, chrome-extension, firefox-addon, html-to-markdown, markdown
- Language: JavaScript
- Homepage:
- Size: 528 KB
- Stars: 330
- Watchers: 8
- Forks: 49
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Copy as Markdown
> Browser extension to copy hyperlinks, images, and selected text as Markdown
## Install
- [**Chrome** extension][link-cws] [][link-cws]
- [**Firefox** add-on][link-amo] [][link-amo]## Screenshot
![Copy as Markdown](media/screenshot-1280x800.png)
## Features
The extension allows you to copy selected text on a page as Markdown with support for features including the following
- Ability to copy links, images, and selected text as Markdown.
- Linked images, will have options to individually select link or images.
- Formatted text such as _italic_, **bold**, ~~strike-through~~, and `inline code`.
- Unordered and ordered lists, with [task lists](https://github.github.com/gfm/#task-list-items-extension-) support.
- Tables, with respect to [GFM](https://github.github.com/gfm/#tables-extension-).
- Fenced code blocks, with language detection using [info strings](https://github.github.com/gfm/#example-112).### Known Issues
> **_Note_**: When copying links and images, Chrome doesn’t let you extract images alt text or anchors text content to be used in Markdown, instead the links themselves are used as link title. Firefox doesn’t have this limitation though.
### Permissions
The extension requires the following permission from you for working.
1. `contextMenus`: to show option when right-clicking.
1. `activeTab`: to be able to access content on page.## Credits
Inspired by [this tweet](https://twitter.com/NicoloRibaudo/status/1143521181196345346) from [@nicolo-ribaudo](https://github.com/nicolo-ribaudo), and publishing made possible by [@yakov116](https://github.com/yakov116).
## Related
- [browser-extension-template](https://github.com/notlmn/browser-extension-template) - Barebones boilerplate with webpack, options handler and auto-publishing.
## License
[MIT](license)
[link-amo]: https://addons.mozilla.org/en-US/firefox/addon/cpy-as-md
[link-cws]: https://chromewebstore.google.com/detail/copy-as-markdown/nlaionblcaejecbkcillglodmmfhjhfi