Skip to content

CB2Moon/Copy-All-as-Markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy All as Markdown Extension

This lightweight Chromium extension converts HTML content to Markdown format and copies it to your clipboard. It can convert either selected text or automatically extract and convert the main content of a webpage.

Convenient for writing AI prompts.

Chrome Web Store Miscrosoft Edge Add-ons is under review.

Features

  • Keyboard shortcut support (Alt+C / Option+C)
  • Convert selected HTML text to Markdown
  • Automatically extract and convert main content when no text is selected
  • Support for various HTML elements including:
    • Headings
    • Lists
    • Tables
    • Code blocks
    • Inline code
    • Links
    • Images
  • Clipboard integration=

Installation

  1. Download or clone this repository
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select the extension directory
  5. The extension icon should appear in your Chrome toolbar

Usage

There are two ways to use the extension:

  1. Click the extension icon in the toolbar
  2. Use the keyboard shortcut Alt+C (Option+C on Mac)

When activated, the extension will:

  • Convert selected text if any text is selected
  • Extract and convert the main content of the page if no text is selected
  • Automatically copy the converted Markdown to your clipboard

Dependencies

This extension uses:

  • Turndown.js for HTML to Markdown conversion
  • Mozilla's Readability.js for main content extraction

Required Files

Before using the extension, make sure to download and place these libraries in the lib directory:

License

MIT License

About

Lightweight Chromium extension converting HTML content to Markdown format and copying to clipboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors