Tool: Preserve Markdown Formatting from AI with Paste to Markdown
Table of Contents
Paste to Markdown #
When working with LLM interfaces like Gemini or ChatGPT, developers face a recurring UX issue: the AI generates appropriately formatted markdown tables and code blocks, but copying and pasting that output straight into a personal editor completely breaks the DOM formatting. Manually retrofitting table layouts wastes time.
To resolve this, I deployed a lightweight data-parsing utility.
You can access the tool here: https://tools.vinhmdev.com/clipboard2markdown
This tool automatically intercepts clipboard data copied from rich text sources (Web interfaces, Word, Excel, AI responses) and parses it down to clean Markdown. The UI utilizes a split-pane layout to ensure zero-latency concurrent editing and previewing.
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.

Workflow Execution #
- Copy: Highlight the target output block generated by ChatGPT/Gemini.
- Paste: Navigate to the utility website and paste directly into the Editor pane.
- Export: Execute the orange Copy Markdown action button, capturing raw static Markdown strings ready for commit deployment to personal Github/Hugo architectures.