Skip to content

feat: add copy MD and rich text to outline panel#7

Merged
gdilla merged 2 commits into
mainfrom
feat/copy-actions
Mar 14, 2026
Merged

feat: add copy MD and rich text to outline panel#7
gdilla merged 2 commits into
mainfrom
feat/copy-actions

Conversation

@gdilla
Copy link
Copy Markdown
Owner

@gdilla gdilla commented Mar 14, 2026

Summary

  • Adds per-section hover icons in the outline panel: Copy MD and Copy Rich Text
  • Adds whole-document copy buttons at the top of the outline panel
  • Section boundary detection extracts content from heading to next same/higher-level heading
  • Rich text copies both text/html and text/plain MIME types — pastes formatted in Google Docs/Slack, plain in code editors

Test plan

  • 9 new tests for section extraction, boundaries, nested headings, clipboard (178 total passing)
  • Lint passes (0 errors)
  • Manual: hover over a heading in outline, verify Copy MD / Copy Rich Text icons appear
  • Manual: click Copy Rich Text on a section, paste into Google Docs — should be formatted
  • Manual: click Copy MD on a section, paste into text editor — should be raw markdown
  • Manual: use whole-doc copy buttons, verify full document copies correctly
  • Manual: verify "Copied!" feedback appears briefly after clicking

🤖 Generated with Claude Code

gdilla and others added 2 commits March 13, 2026 17:47
- Add per-section hover icons for Copy MD and Copy Rich Text
- Add whole-document copy buttons at top of outline panel
- Add section boundary detection to outline store
- Add clipboardUtils with rich text clipboard support (text/html + text/plain)
- Rich text pastes formatted in Google Docs and Slack
- Tests for section extraction and clipboard operations

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Turndown escapes markdown-special characters (\#, \-, \>, etc.) when
converting HTML→MD. This is correct for round-tripping but produces
ugly output when copying. Strip these escapes before clipboard write.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@gdilla gdilla force-pushed the feat/copy-actions branch from 31c94af to 25ff28d Compare March 14, 2026 01:24
@gdilla gdilla merged commit c26b4a4 into main Mar 14, 2026
1 check failed
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