PasteMD  by RICHQAQ

Seamlessly integrate AI content into documents

Created 2 months ago
2,963 stars

Top 16.0% on SourcePulse

GitHubView on GitHub
Project Summary

PasteMD addresses the common issue of formatting errors when copying content, particularly mathematical formulas and tables, from AI chat interfaces (like ChatGPT, DeepSeek) and web pages into Microsoft Word, WPS, or Excel. This utility acts as a background tool, enabling users to paste rich text or Markdown content seamlessly into their documents with a single hotkey, significantly improving efficiency for technical writing and report generation.

How It Works

The tool operates by monitoring the system clipboard for Markdown or HTML rich text. It leverages the powerful Pandoc conversion engine to transform Markdown into DOCX format, which is then automatically inserted into the active Word or WPS document. For Markdown tables, PasteMD intelligently identifies them and pastes them directly into an active Excel sheet, preserving formatting. It also handles rich text copied from web pages, converting it for Word/WPS, with specific logic for mathematical formulas, aiming to render them correctly or retain their LaTeX source.

Quick Start & Requirements

Users can download pre-compiled, portable executables (.exe) from the project's Releases page, with an option (PasteMD_pandoc-Setup.exe) that bundles Pandoc. Alternatively, the project can be run from source using Python 3.12 (64-bit) after installing dependencies via pip install -r requirements.txt. A key external dependency is Pandoc, which must be installed and accessible in the system's PATH if not using the bundled installer.

Highlighted Details

  • Extensive AI website compatibility testing is provided, detailing support for Markdown and HTML content, including mathematical formulas, across various platforms like Kimi, DeepSeek, ChatGPT, and Gemini.
  • Features a configurable global hotkey (default Ctrl+B) for instant pasting and a system tray menu for managing settings, viewing logs, and checking for updates.
  • Offers intelligent handling for Markdown tables to Excel, rich text from web pages, and options to control indentation, formula retention (as LaTeX), and cursor positioning post-paste.
  • Includes automatic application launching if Word or Excel is not detected, and options to retain generated DOCX files.

Maintenance & Community

The project encourages user feedback via GitHub Issues for suggestions and bug reports, and seeks community support via stars and donations to facilitate ongoing maintenance and feature development. Specific community channels like Discord or Slack are not detailed in the README.

Licensing & Compatibility

PasteMD is released under the permissive MIT License, which generally allows for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats

Mathematical formulas copied from certain AI sources may render as LaTeX code requiring manual editing in Word/WPS, or may be lost entirely, depending on the source and configuration. For HTML content from specific sites like Doubao, browser-level clipboard permissions may need to be enabled. The portable executable requires a separate Pandoc installation.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
8
Issues (30d)
24
Star History
2,026 stars in the last 30 days

Explore Similar Projects

Starred by Will Brown Will Brown(Research Lead at Prime Intellect), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
16 more.

stagehand by browserbase

1.5%
20k
AI browser automation framework for production
Created 1 year ago
Updated 2 days ago
Feedback? Help us improve.