Skip to content

1.0.4

Choose a tag to compare

@github-actions github-actions released this 18 Jun 05:17
· 1 commit to main since this release
Fix: Add container.focus() and correct DOMParser node import

Two bugs in the execCommand clipboard approach:
1. Missing container.focus() — without focus, execCommand copies from the
   active editor (raw markdown) instead of our hidden container (formatted HTML)
2. Appending parsed.body (HTMLBodyElement) to a div is invalid DOM and gets
   silently dropped; import parsed.body.childNodes instead

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>