{"action":"opened","issue":{"url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/231","repository_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp","labels_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/231/comments","events_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/231/events","html_url":"https://github.com/Automattic/facebook-instant-articles-wp/issues/231","id":153234851,"number":231,"title":"Plugin integration support: Getty Images","user":{"login":"demoive","id":472288,"avatar_url":"https://avatars.githubusercontent.com/u/472288?v=3","gravatar_id":"","url":"https://api.github.com/users/demoive","html_url":"https://github.com/demoive","followers_url":"https://api.github.com/users/demoive/followers","following_url":"https://api.github.com/users/demoive/following{/other_user}","gists_url":"https://api.github.com/users/demoive/gists{/gist_id}","starred_url":"https://api.github.com/users/demoive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoive/subscriptions","organizations_url":"https://api.github.com/users/demoive/orgs","repos_url":"https://api.github.com/users/demoive/repos","events_url":"https://api.github.com/users/demoive/events{/privacy}","received_events_url":"https://api.github.com/users/demoive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-05T13:43:56Z","updated_at":"2016-05-05T13:43:56Z","closed_at":null,"body":"Add default support for the markup generated by the [Getty Images](https://wordpress.org/plugins/getty-images/) plugin.\r\n\r\n**Source Markup** (produced by plugin from inline link: http://gty.im/145589790)\r\n```html\r\n<div class=\"getty embed image\" style=\"background-color:#fff;display:inline-block;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#a7a7a7;font-size:11px;width:100%;max-width:594px;\">\r\n  <div style=\"padding:0;margin:0;text-align:left;\">\r\n    <a href=\"http://www.gettyimages.com/detail/145589790\" target=\"_blank\" style=\"color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;\">\r\n      Embed from Getty Images\r\n    </a>\r\n  </div>\r\n  <div style=\"overflow:hidden;position:relative;height:0;padding:68.181818% 0 0 0;width:100%;\">\r\n    <iframe src=\"//embed.gettyimages.com/embed/145589790?et=0r4D0gqsQK5OpAqMj69mmA&#038;sig=2_9FDU-UMbwOLuQk_R_OZpfdP8PvWe0AORzpM_S9MFs=\" width=\"594\" height=\"405\" scrolling=\"no\" frameborder=\"0\" style=\"display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;\"></iframe>\r\n  </div>\r\n  <p style=\"margin:0;\">\r\n</div>\r\n```\r\n\r\n**Transformed Markup**\r\n```html\r\n<figure class=\"op-social\">\r\n  <iframe>\r\n    <div style=\"padding:0;margin:0;text-align:left;\">\r\n      <a href=\"http://www.gettyimages.com/detail/145589790\" target=\"_blank\" style=\"color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;\">\r\n        Embed from Getty Images\r\n      </a>\r\n    </div>\r\n    <div style=\"overflow:hidden;position:relative;height:0;padding:68.181818% 0 0 0;width:100%;\">\r\n      <iframe src=\"//embed.gettyimages.com/embed/145589790?et=0r4D0gqsQK5OpAqMj69mmA&amp;sig=2_9FDU-UMbwOLuQk_R_OZpfdP8PvWe0AORzpM_S9MFs=\" width=\"594\" height=\"405\" scrolling=\"no\" frameborder=\"0\" style=\"display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;\"/>\r\n    </div>\r\n    <p style=\"margin:0;\"></p>\r\n  </iframe>\r\n</figure>\r\n```\r\n\r\nReferences:\r\nhttps://wordpress.org/support/topic/getty-embed-causing-errors?replies=2"}}