{"action":"created","issue":{"url":"https://api.github.com/repos/PrismJS/prism/issues/1292","repository_url":"https://api.github.com/repos/PrismJS/prism","labels_url":"https://api.github.com/repos/PrismJS/prism/issues/1292/labels{/name}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/1292/comments","events_url":"https://api.github.com/repos/PrismJS/prism/issues/1292/events","html_url":"https://github.com/PrismJS/prism/issues/1292","id":296289516,"number":1292,"title":"Markup highlight puts literal tag end sign instead of entity.","user":{"login":"rafalwrzeszcz","id":633614,"avatar_url":"https://avatars1.githubusercontent.com/u/633614?v=4","gravatar_id":"","url":"https://api.github.com/users/rafalwrzeszcz","html_url":"https://github.com/rafalwrzeszcz","followers_url":"https://api.github.com/users/rafalwrzeszcz/followers","following_url":"https://api.github.com/users/rafalwrzeszcz/following{/other_user}","gists_url":"https://api.github.com/users/rafalwrzeszcz/gists{/gist_id}","starred_url":"https://api.github.com/users/rafalwrzeszcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafalwrzeszcz/subscriptions","organizations_url":"https://api.github.com/users/rafalwrzeszcz/orgs","repos_url":"https://api.github.com/users/rafalwrzeszcz/repos","events_url":"https://api.github.com/users/rafalwrzeszcz/events{/privacy}","received_events_url":"https://api.github.com/users/rafalwrzeszcz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-12T07:52:31Z","updated_at":"2018-02-12T23:01:59Z","closed_at":null,"author_association":"NONE","body":"Using markup (eg. `xml`) language breaks document as it converts `&gt;` into literal `>` signs (leaves `&lt;`, `&amp;` and others alone).\r\n\r\nAn example:\r\n\r\n```xml\r\n<pre class=\"language-xml\"><code>&lt;element&gt;&lt;![CDATA[\r\n    &lt;foo&gt;\r\n]]&gt;&lt;/element&gt;</code></pre>\r\n```\r\n\r\nExpected output would be to have just token `<span>` highlighting elements added. But instead this is the computed value:\r\n\r\n```xml\r\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>element</span><span class=\"token punctuation\">></span></span><span class=\"token cdata\">&lt;![CDATA[\r\n    &lt;foo>\r\n]]></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>element</span><span class=\"token punctuation\">></span></span>\r\n```\r\n\r\nNote the `<span class=\"token punctuation\">></span>` instead of `<span class=\"token punctuation\">&gt;</span>` everywhere (even within `CDATA` block)."},"comment":{"url":"https://api.github.com/repos/PrismJS/prism/issues/comments/365093147","html_url":"https://github.com/PrismJS/prism/issues/1292#issuecomment-365093147","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/1292","id":365093147,"user":{"login":"Golmote","id":565460,"avatar_url":"https://avatars3.githubusercontent.com/u/565460?v=4","gravatar_id":"","url":"https://api.github.com/users/Golmote","html_url":"https://github.com/Golmote","followers_url":"https://api.github.com/users/Golmote/followers","following_url":"https://api.github.com/users/Golmote/following{/other_user}","gists_url":"https://api.github.com/users/Golmote/gists{/gist_id}","starred_url":"https://api.github.com/users/Golmote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Golmote/subscriptions","organizations_url":"https://api.github.com/users/Golmote/orgs","repos_url":"https://api.github.com/users/Golmote/repos","events_url":"https://api.github.com/users/Golmote/events{/privacy}","received_events_url":"https://api.github.com/users/Golmote/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T23:01:59Z","updated_at":"2018-02-12T23:01:59Z","author_association":"CONTRIBUTOR","body":"Hi @rafalwrzeszcz. Thanks for reporting. I was unable to reproduce the issue, though. https://codepen.io/anon/pen/xYrXzz"}}
{"actor":{"display_login":"Golmote"}}