Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Save web pages as Markdown files with preserved formatting. Perfect for documentation, articles, and note-taking.

License

Notifications You must be signed in to change notification settings

levz0r/markdown-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

72 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Markdown Printer

Save web pages as Markdown files with preserved formatting. Zero setup required - just install and start saving!

Perfect for documentation, articles, and note-taking.

Chrome Web Store Version Mozilla Add-on Version

✨ Features

  • πŸš€ No setup required - works immediately after installation
  • πŸ“ Preserves formatting (headers, links, code blocks, lists, tables)
  • πŸ’Ύ Save anywhere with familiar "Save As" dialog
  • ⚑ Fast client-side conversion using Turndown.js
  • 🎯 Right-click menu + extension popup
  • πŸ“Š Adds metadata (source URL, save date) to saved files

🎯 Installation

Chrome

Install from Chrome Web Store ⭐

Edge

Install from Edge Add-ons ⭐

Firefox

Install from Firefox Add-ons ⭐

Manual Installation (For Development)

Chrome/Edge:

  1. Clone or download this repository
  2. Open Chrome/Edge and navigate to chrome://extensions/ or edge://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked"
  5. Select the extension-chrome/ directory
  6. Done! πŸŽ‰

Firefox:

  1. Clone or download this repository
  2. Open Firefox and navigate to about:debugging
  3. Click "This Firefox" in the left sidebar
  4. Click "Load Temporary Add-on"
  5. Navigate to the extension-firefox/ directory and select manifest.json
  6. Done! πŸŽ‰

πŸ“– Usage

Method 1: Right-Click Menu

  1. Navigate to any webpage
  2. Right-click anywhere on the page
  3. Select "Save as Markdown"
  4. Choose where to save in the dialog

Method 2: Extension Icon

  1. Navigate to any webpage
  2. Click the Markdown Printer icon in the toolbar
  3. Click "Save Page as Markdown"
  4. Choose where to save in the dialog

πŸ“‚ Output Format

Files are saved with the format: Page-Title-YYYY-MM-DD.md

Example:

# Getting Started Guide

**Source:** https://example.com/docs/getting-started
**Saved:** 2025-10-01T12:00:00.000Z

_Generated with [markdown-printer](https://github.com/levz0r/markdown-printer) (v1.1.0) by [Lev Gelfenbuim](https://lev.engineer)_

---

[Your page content in Markdown format]

πŸ”§ Pro Version

Need advanced features? Check out the Pro Version in the extension-pro/ folder:

  • βœ… Custom save location (no dialog every time)
  • βœ… Auto-open files in your editor after saving
  • βœ… Folder browser to pick save location
  • βœ… Persistent settings

Trade-off: Requires additional setup (native messaging host installation)

See Pro Version README for installation instructions.

πŸ†š Comparison

Feature Standard Pro
Installation One-click Requires setup script
Browser Support Chrome, Edge, Firefox Chrome, Edge, Firefox
Save location Choose each time Configurable default
Auto-open files ❌ βœ…
Settings ❌ βœ…
Chrome Web Store βœ… Available ❌ Can't publish
Edge Add-ons βœ… Available ❌ Can't publish
Firefox Add-ons βœ… Available ❌ Can't publish

πŸ› οΈ Technical Details

  • Extension Type: Manifest V3
  • Conversion: Turndown.js (client-side)
  • Permissions: activeTab, downloads, scripting, contextMenus
  • File Format: Markdown (.md)
  • Browser Support: Chrome, Edge, Firefox (121+)
  • Cross-browser: Separate builds for Chrome and Firefox due to Manifest V3 differences

πŸ“ License

MIT License - see LICENSE file for details

🀝 Contributing

Contributions welcome! Feel free to open issues or submit pull requests.

Development

The extension uses a shared codebase for Chrome and Firefox:

src/
  background.js          # Source of truth - edit this file
extension-chrome/
  background.js          # Copied from src/ during build
extension-firefox/
  background.js          # Copied from src/ during build

Workflow:

  1. Edit src/background.js
  2. Run pnpm run build to copy to both extensions
  3. Load unpacked extension from extension-chrome/ or extension-firefox/
  4. Run pnpm run format && pnpm run test && pnpm run lint before committing

πŸ”— Links


Made with ❀️ by Lev Gelfenbuim

About

Save web pages as Markdown files with preserved formatting. Perfect for documentation, articles, and note-taking.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •