Repolode
RICHQAQ

RICHQAQ/PasteMD

A Windows tray tool that converts clipboard Markdown and AI chat HTML into Word, WPS, or Excel content using Pandoc.

Stars
5,388
Forks
321
Open issues
31
Last commit
10 days ago

What is it?

PasteMD is a small tray utility that reads Markdown or HTML from the clipboard, converts it with Pandoc, and inserts the result at the cursor in Word or WPS. A global hotkey (default Ctrl+Shift+B) triggers the conversion, and the app detects whether Word or WPS is in the foreground.

It targets a common problem: copying AI chat replies from ChatGPT, DeepSeek, Gemini and similar sites often loses formulas or formatting when pasted into Word. The project includes a compatibility table for major AI sites, covering whether Markdown or rendered-page copies keep formulas intact. Markdown tables are detected and pasted into Excel.

Configuration is stored in a JSON file and includes options for Pandoc filters (for example, Mermaid diagram rendering), LaTeX fixes, per-application paste workflows matched by window title, and the interface language. The project runs from Python 3.12 source, and a bundled installer includes Pandoc.

Key features

  • 01Converts clipboard Markdown to DOCX via Pandoc and inserts it into Word or WPS.
  • 02Detects Markdown tables and pastes them into Excel.
  • 03Pastes HTML rich text copied from web pages, keeping formatting and formulas.
  • 04Repairs some LaTeX syntax and single-line $...$ formula blocks.
  • 05Supports per-application paste modes matched by window title.
  • 06Allows custom Pandoc Filters, such as Mermaid diagram rendering.

Use cases

  • Moving AI chat answers with formulas into a Word thesis or report.
  • Pasting Markdown tables from AI or notes into Excel spreadsheets.
  • Inserting content into Word or WPS documents without manual reformatting.

Quick start

  1. 1

    Download the one-click installer (bundles Pandoc) from the Releases page

  2. 2

    Open Word, WPS or Excel, place the cursor, copy Markdown or web content, then press the hotkey

    Ctrl+Shift+B

Things to know

  • Windows-only tool that targets Word, WPS and Excel.
  • Running from source requires Python 3.12 and the README's pip install steps.
  • The portable build that needed a separate Pandoc install is no longer provided; you must compile it yourself.
  • AGPL-3.0 license requires derivative network-served works to share source code.

Topics

FAQ

What is PasteMD?
A Windows tray tool that converts clipboard Markdown and AI chat HTML into Word, WPS, or Excel content using Pandoc. PasteMD is a small tray utility that reads Markdown or HTML from the clipboard, converts it with Pandoc, and inserts the result at the cursor in Word or WPS. A global hotkey (default Ctrl+Shift+B) triggers the conversion, and the app detects whether Word or WPS is in the foreground.
Is PasteMD free to use? What license does it have?
PasteMD is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
Is PasteMD still maintained?
Actively maintained. The last commit to PasteMD was on Oct 10, 2026.
What can I use PasteMD for?
Moving AI chat answers with formulas into a Word thesis or report. Pasting Markdown tables from AI or notes into Excel spreadsheets. Inserting content into Word or WPS documents without manual reformatting.
How do I install PasteMD?
Download the one-click installer (bundles Pandoc) from the Releases page Open Word, WPS or Excel, place the cursor, copy Markdown or web content, then press the hotkey: Ctrl+Shift+B
Where can I get PasteMD?
The source code and installation instructions are on GitHub: https://github.com/RICHQAQ/PasteMD

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects