Skip to content

Add rich paste: convert HTML to markdown on paste#16

Merged
disnet merged 1 commit intomainfrom
disnet/rich-paste-to-markdown
Jan 13, 2026
Merged

Add rich paste: convert HTML to markdown on paste#16
disnet merged 1 commit intomainfrom
disnet/rich-paste-to-markdown

Conversation

@disnet
Copy link
Owner

@disnet disnet commented Jan 13, 2026

Summary

  • Intercepts clipboard HTML data when pasting and converts to markdown
  • Preserves formatting: headers, bold, italic, links, lists, blockquotes, tables, code blocks
  • Supports Google Docs style-based formatting (font-weight: 700) in addition to semantic HTML
  • Falls back to default behavior if no HTML is present

Test Plan

  • Paste formatted text from a webpage with headers, lists, bold, italic, links
  • Paste from Google Docs with formatting
  • Paste a table from a webpage
  • Verify images paste still works as before

🤖 Generated with Claude Code

Intercepts clipboard HTML data when pasting and converts to markdown, preserving formatting like headers, bold, italic, links, lists, blockquotes, and tables. Supports content from webpages, Google Docs, and Word with style-based formatting detection.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying flint-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4483fb0
Status: ✅  Deploy successful!
Preview URL: https://93d08f81.flint-website.pages.dev
Branch Preview URL: https://disnet-rich-paste-to-markdow.flint-website.pages.dev

View logs

@disnet disnet merged commit 280c40c into main Jan 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant