Alt+C to copy selected web content as Markdown, support headings, links, images, tables and more.

Latest Version

Version
0.0.6
Update
November 25, 2024
Size
640KiB
Developer
manglekuo.com
Category
Users
12
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
ClipboardWrite
See more

Copy as Markdown Extension

Copy as Markdown: Alt+C (Option+C on Mac)

Use Alt+C (Option+C on Mac) to copy any web page as plain-text Markdown, preserving headings, links, images, code blocks, tables, and lists with perfect formatting! Ideal for working with LLMs, creating .md files, or sharing web content via messaging apps.

Why?

When you copy something, your clipboard stores up to three formats: plain text, HTML, and RTF (rich text format). In browsers, it’s typically plain text and HTML. The app where you paste determines which format to use.

This works fine with editors like Notion, which take HTML and convert it into their internal format to preserve structure. However, it’s frustrating when working with LLMs because their input fields often only accept plain text, causing you to lose important context like table structures, link URLs, and headings.

Before this extension, I had to copy from a webpage, paste it into Notion, copy from Notion, paste it into Sublime, and finally paste it into the LLM interface.

How?

This Chrome extension solves the problem by using the same technology that powers markdown editors—a library called ProseMirror. It directly processes the selected HTML from your browser to generate Markdown and places it in your clipboard.

All the processing happens securely in your browser, bundled entirely within the extension, ensuring your content is processed offline for complete privacy.

Update
\t•\tv0.0.6: Improved manifesto file and setup GitHub repo, please use the github repo for feature request or bug report etc. https://github.com/ghcpuman902/copy-as-markdown

Roadmap
\t•\t2024/11/13: Conceptualized the idea
\t•\t2024/11/15: Prototype completed
\t•\t2024/11/19: Published

TODO:
\t•\tImprove handling of relative URLs
\t•\tAdd more customizable key combinations
\t•\tFurther beautify Markdown output, especially for tables

Made by Mangle Kuo
https://manglekuo.com
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Copy as Markdown", "version": "0.0.6", "description": "Alt+C to copy selected web content as Markdown, support headings, links, images, tables and more.", "author": "Mangle Kuo", "homepage_url": "https://github.com/ghcpuman902/copy-as-markdown", "icons": { "16": "images/icon-16.png", "32": "images/icon-32.png", "48": "images/icon-48.png", "128": "images/icon-128.png" }, "background": { "service_worker": "background.mjs", "type": "module" }, "permissions": ["activeTab", "clipboardWrite"], "commands": { "convert_html_to_markdown": { "suggested_key": { "default": "Alt+C", "mac": "Alt+C", "windows": "Alt+C" }, "description": "Alt+C to copy any web content as Markdown" } }, "content_scripts": [ { "matches": [""], "js": ["content-script.mjs"] } ]}
Read more

Similar Extensions

icon

Copy-n-Paste: Clipboard Upload Simplified Extension · Productivity 12 45 ★ 23.57KiB

icon

Allow Copy & Enable Right Click Extension · Productivity 12 3 ★ 24.77KiB

icon

Absolute Enable Right Click & Copy Extension · Productivity 12 19 ★ 4.39MiB

icon

Copy as Markdown Extension · Developer Tools 12 31 ★ 31.6KiB

icon

Copy URL To Clipboard Extension · Productivity 12 44 ★ 160KiB

icon

Copy as Markdown Extension · Productivity 12 66 ★ 158KiB

icon

Text From PRO Extension · Accessibility 12 18 ★ 285KiB

icon

Smart Copy Link Extension · Productivity 12 18 ★ 783KiB

icon

Enhanced GitHub Extension · Developer Tools 12 59 ★ 47.01KiB

icon

Browser Boost - Extra Tools for Chrome Extension · Productivity 12 104 ★ 116KiB

icon

MultiLine Text Selection Extension · Productivity 12 69 ★ 68.36KiB

icon

Web Content Copier Extension · Productivity 12 5 ★ 9.83KiB

icon

Link Extractor Extension · Productivity 12 6 ★ 1.05MiB

icon

Copy Text Easily Extension · Productivity 12 55 ★ 66.36KiB

icon

Print Edit WE Extension · Productivity 12 313 ★ 104KiB

icon

Copy Text from Image Extension · Productivity 12 4 ★ 11.93MiB

icon

Copy as Plain Text Extension · Productivity 12 24 ★ 39.63KiB

icon

HTML-Table Scraper Extension · Productivity 12 10 ★ 55.43KiB

icon

Screenshot to Notion & Annotate Extension · Productivity 12 45 ★ 173KiB

icon

Select & Copy HTML Text Extension · Productivity 12 3 ★ 26.02KiB

icon

Notion Mate Extension · Productivity 12 35 ★ 132KiB

icon

Auto Clipboard Extension · Productivity 12 9 ★ 51.32KiB

icon

Display #Anchors Extension · Productivity 12 61 ★ 32.65KiB

icon

Markdown Preview Plus Extension · Productivity 12 234 ★ 2.24MiB