Bug 463361

Summary: Rich copy/paste support
Product: [Applications] ghostwriter Reporter: megan.conkle
Component: generalAssignee: megan.conkle
Status: CONFIRMED ---    
Severity: wishlist CC: me
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description megan.conkle 2022-12-22 21:27:20 UTC
When pasting from a rich text source like HTML, LibreOffice Writer or Google Doc, it'd be great if the pasted result in Ghostwriter applied any formatting already present in the source text.
Comment 1 Basil Crow 2026-01-29 19:52:45 UTC
+1, would be great if this could be implemented. Ghostwriter could

- Detect clipboard formats via Qt (e.g., `QClipboard::mimeData()`)
- If `text/html` exists (e.g., `mimeData->hasHtml()`), fetch it (e.g., `html = mimeData->html()`) and convert it with e.g. `pandoc -f html -t gfm` (or `-t commonmark`)
- Insert converted Markdown into the editor

If Pandoc isn't installed or fails, we can fall back to normal paste