Giter Site home page Giter Site logo

notlmn / copy-as-markdown Goto Github PK

View Code? Open in Web Editor NEW
305.0 8.0 44.0 528 KB

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

License: MIT License

JavaScript 100.00%
markdown html-to-markdown browser-extension chrome-extension firefox-addon

copy-as-markdown's Introduction

Copy as Markdown

Browser extension to copy hyperlinks, images, and selected text as Markdown

Install

Screenshot

Copy as Markdown

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 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.

  1. contextMenus: to show option when right-clicking.
  2. activeTab: to be able to access content on page.
  3. clipboardWrite: to be able to write data to clipboard (we still can’t read from your clipboard).

Credits

Inspired by this tweet from @nicolo-ribaudo, and publishing made possible by @yakov116.

Related

License

MIT © Laxman Damera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.