paste-html-subset: Add option for including the cleaned rich HTML #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Love these tools, btw. <3
This is a small tweak that really amplifies the value of the clipboard HTML cleaner for me.
With this on, you can paste the cleaned version right into a rich text editor (like gmail, google docs, etc.). Not that I'd be using this to efficiently disguise that I copy pasted some output from an LLM chat..... :p
Or a blog post without the styles:
If you paste into a plain-text editor... it makes no difference as that paste target doesn't accept text/html.
ClipboardItemandnav.clipboard.write()are newer than the old execCommand('copy') or evennav.clipboard.writeText().. but they're Baseline as of 18 months ago, so no browser support concerns here.Lastly, I'd lean towards dropping the checkbox and just always doing this. But figured I'd leave that call up to you.