Skip to main content
  1. Posts/

Tool: Preserve Markdown Formatting from AI with Paste to Markdown

·225 words·2 mins

An automated tool designed to convert text copied from AI interfaces into clean Markdown, successfully maintaining tables and code blocks.

Paste to Markdown #

You ask ChatGPT or Gemini for a nicely formatted table, get one back, paste it into your editor — and the formatting falls apart. The DOM swallows the structure, and you’re left rebuilding the table by hand. Tedious every single time.

So I built a small utility to handle it.

You can access the tool here: https://tools.vinhmdev.com/clipboard2markdown

The tool intercepts clipboard data from rich-text sources — web interfaces, Word, Excel, AI responses — and parses it down to clean Markdown. A split-pane UI lets you edit and preview side by side, no lag.

Integrated Features #

Accessing the settings gear ⚙️ exposes several configurations:

  • Auto-convert to Markdown on Paste: Intercepts standard Ctrl+V inputs, bypassing raw DOM garbage and instantly compiling the rich text back into structured Markdown syntax.
  • Mermaid & LaTeX Support: Designed for engineers; perfectly preserves flowchart schemas (Mermaid) and complex mathematical strings (LaTeX) natively without truncation.
  • Sync Scroll: Implements dual-pane synchronized scrolling for mapping long document edits effectively.
  • Cross-Format Exporting: Standard one-click triggers to compile output to .md, .docx, or .pdf.

Paste to Markdown Tool with settings
https://tools.vinhmdev.com/clipboard2markdown

Workflow Execution #

  1. Copy: Highlight the target output block generated by ChatGPT/Gemini.
  2. Paste: Navigate to the utility website and paste directly into the Editor pane.
  3. Export: Hit the orange Copy Markdown button. You get clean Markdown on your clipboard, ready to commit straight into your GitHub or Hugo setup.