Awesome
<img src="source/copy-as-markdown.png" width="45" align="left"> Copy as Markdown
Browser extension to copy hyperlinks, images, and selected text as Markdown
Install
- Chrome extension <img valign="middle" src="https://img.shields.io/chrome-web-store/v/nlaionblcaejecbkcillglodmmfhjhfi.svg?label=%20">
- Firefox add-on <img valign="middle" src="https://img.shields.io/amo/v/cpy-as-md.svg?label=%20">
Screenshot
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, andinline code
. - Unordered and ordered lists, with task lists support.
- Tables, with respect to GFM.
- Fenced code blocks, with language detection using info strings.
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.
contextMenus
: to show option when right-clicking.activeTab
: to be able to access content on page.
Credits
Inspired by this tweet from @nicolo-ribaudo, and publishing made possible by @yakov116.
Related
- browser-extension-template - Barebones boilerplate with webpack, options handler and auto-publishing.