Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

🖱 Browser extension to copy hyperlinks, images, and selected text as Markdown with GFM support

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) © Laxman Damera

[link-amo]: https://addons.mozilla.org/en-US/firefox/addon/cpy-as-md/
[link-cws]: https://chrome.google.com/webstore/detail/copy-as-markdown/nlaionblcaejecbkcillglodmmfhjhfi/