{"action":"created","issue":{"url":"https://api.github.com/repos/discourse/discourse/issues/5395","repository_url":"https://api.github.com/repos/discourse/discourse","labels_url":"https://api.github.com/repos/discourse/discourse/issues/5395/labels{/name}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/5395/comments","events_url":"https://api.github.com/repos/discourse/discourse/issues/5395/events","html_url":"https://github.com/discourse/discourse/pull/5395","id":279115147,"number":5395,"title":"FEATURE: Convert HTML to Markdown while pasting in composer","user":{"login":"vinothkannans","id":9372109,"avatar_url":"https://avatars0.githubusercontent.com/u/9372109?v=4","gravatar_id":"","url":"https://api.github.com/users/vinothkannans","html_url":"https://github.com/vinothkannans","followers_url":"https://api.github.com/users/vinothkannans/followers","following_url":"https://api.github.com/users/vinothkannans/following{/other_user}","gists_url":"https://api.github.com/users/vinothkannans/gists{/gist_id}","starred_url":"https://api.github.com/users/vinothkannans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinothkannans/subscriptions","organizations_url":"https://api.github.com/users/vinothkannans/orgs","repos_url":"https://api.github.com/users/vinothkannans/repos","events_url":"https://api.github.com/users/vinothkannans/events{/privacy}","received_events_url":"https://api.github.com/users/vinothkannans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-04T19:17:42Z","updated_at":"2017-12-05T06:33:38Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/5395","html_url":"https://github.com/discourse/discourse/pull/5395","diff_url":"https://github.com/discourse/discourse/pull/5395.diff","patch_url":"https://github.com/discourse/discourse/pull/5395.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/discourse/discourse/issues/comments/349209689","html_url":"https://github.com/discourse/discourse/pull/5395#issuecomment-349209689","issue_url":"https://api.github.com/repos/discourse/discourse/issues/5395","id":349209689,"user":{"login":"schungx","id":661318,"avatar_url":"https://avatars1.githubusercontent.com/u/661318?v=4","gravatar_id":"","url":"https://api.github.com/users/schungx","html_url":"https://github.com/schungx","followers_url":"https://api.github.com/users/schungx/followers","following_url":"https://api.github.com/users/schungx/following{/other_user}","gists_url":"https://api.github.com/users/schungx/gists{/gist_id}","starred_url":"https://api.github.com/users/schungx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schungx/subscriptions","organizations_url":"https://api.github.com/users/schungx/orgs","repos_url":"https://api.github.com/users/schungx/repos","events_url":"https://api.github.com/users/schungx/events{/privacy}","received_events_url":"https://api.github.com/users/schungx/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T06:33:38Z","updated_at":"2017-12-05T06:33:38Z","author_association":"NONE","body":"@vinothkannans if you look closely, when somebody copy a table, say from Word or from a webpage, there will be both `text/html` and `text/plain`.  In your code, you'll detect that the `plainText` is a table, and handle it first _before_ checking for `text/html`.  That is sub-optimal, because `text/html`, if present, should supersede `text/plain`.  There may be formatting inside the table that can be preserved if you handle `text/html` first.\r\n\r\nThis edge case is when the copied content is a full table and only a table. "}}
{"actor":{"display_login":"schungx"}}