github/paste-markdown

Copied text from any web page containing <table> is pasted as raw HTML

Closed this issue · 1 comments

The change for converting <table> to markdown has introduced an unexpected side-effect: any text copied from a webpage containing <table> inside is pasted as raw HTML.

This caused a couple of identified issues in Dotcom already:

  1. https://github.com/github/issues/issues/1804
  2. https://github.com/github/issues/issues/1902
  3. https://github.com/github/github/issues/184107

There are possible workarounds for specific places (as described here for example), but the generic solution is needed.

Here's a gif with repro:

  1. Text, selected by double-click (single word) can be pasted as-is without problems.
  2. A selection resulting from single-click + drag over the comment text will be pasted as raw HTML

Kapture 2021-06-21 at 15 22 15

Fixed in 0.3.3.