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

How to download and manually install Copy as Markdown extension for Chrome

Looking for a way to install Copy as Markdown extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Copy as Markdown extensions manually, this article outlines two simple methods to effortlessly install Copy as Markdown extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Copy as Markdown extension and manually install through Drag &Drop

If you ever need to manually install a Copy as Markdown extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Copy as Markdown Extension by clicking the "Download CRX" button on the website.

Look for the Copy as Markdown extension you wish to install. Go to the website and download the Copy as Markdown extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Copy as Markdown extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Copy as Markdown extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Copy as Markdown extension for Chrome and install in Developer Mode

This is another method to install Copy as Markdown extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Copy as Markdown extension file

Select and download the Copy as Markdown extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Copy as Markdown extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Copy as Markdown extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Copy as Markdown extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Copy as Markdown extension in 2 ways. We hope this guide proves helpful.

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