Browser extension to copy hyperlinks, images, and selected text as Markdown
Copy as Markdown Extension
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.
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.
The extension can only write to your clipboard and not read from it in any way.
Read more
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.
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.
The extension can only write to your clipboard and not read from it in any way.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx",\t"name": "Copy as Markdown",\t"version": "24.10.14",\t"description": "Browser extension to copy hyperlinks, images, and selected text as Markdown",\t"homepage_url": "https://github.com/notlmn/copy-as-markdown",\t"manifest_version": 3,\t"minimum_chrome_version": "88",\t"browser_specific_settings": {\t\t"gecko": {\t\t\t"id": {6779b4de-d680-462a-8038-43079e365983},\t\t\t"strict_min_version": "106.0"\t\t}\t},\t"icons": {\t\t"128": "copy-as-markdown.png"\t},\t"permissions": [\t\t"contextMenus",\t\t"activeTab"\t],\t"action": {\t\t"default_icon": "copy-as-markdown.png"\t},\t"background": {\t\t"service_worker": "background.js",\t\t"scripts": [\t\t\t"background.js"\t\t]\t},\t"content_scripts": [\t\t{\t\t\t"matches": [\t\t\t\t"*://*/*"\t\t\t],\t\t\t"js": [\t\t\t\t"copy-as-markdown.js"\t\t\t],\t\t\t"run_at": "document_start"\t\t}\t],\t"web_accessible_resources": [\t\t{\t\t\t"resources": [\t\t\t\t"copy-as-markdown.js",\t\t\t\t"copy-as-markdown.js.map"\t\t\t],\t\t\t"matches": []\t\t}\t],\t"commands": {\t\t"copy-selection-as-md": {\t\t\t"suggested_key": {\t\t\t\t"default": "Alt+X",\t\t\t\t"mac": "Alt+X"\t\t\t},\t\t\t"description": "Copy selection as markdown"\t\t}\t}}
Read more