{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/20","labels_url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/20/comments","events_url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/20/events","html_url":"https://github.com/asciidoctor/brackets-asciidoc-preview/issues/20","id":53213264,"number":20,"title":"HTML/XML code snippets are being modified","user":{"login":"AmeliaBR","id":9876129,"avatar_url":"https://avatars.githubusercontent.com/u/9876129?v=3","gravatar_id":"","url":"https://api.github.com/users/AmeliaBR","html_url":"https://github.com/AmeliaBR","followers_url":"https://api.github.com/users/AmeliaBR/followers","following_url":"https://api.github.com/users/AmeliaBR/following{/other_user}","gists_url":"https://api.github.com/users/AmeliaBR/gists{/gist_id}","starred_url":"https://api.github.com/users/AmeliaBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmeliaBR/subscriptions","organizations_url":"https://api.github.com/users/AmeliaBR/orgs","repos_url":"https://api.github.com/users/AmeliaBR/repos","events_url":"https://api.github.com/users/AmeliaBR/events{/privacy}","received_events_url":"https://api.github.com/users/AmeliaBR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"nerk","id":5136501,"avatar_url":"https://avatars.githubusercontent.com/u/5136501?v=3","gravatar_id":"","url":"https://api.github.com/users/nerk","html_url":"https://github.com/nerk","followers_url":"https://api.github.com/users/nerk/followers","following_url":"https://api.github.com/users/nerk/following{/other_user}","gists_url":"https://api.github.com/users/nerk/gists{/gist_id}","starred_url":"https://api.github.com/users/nerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerk/subscriptions","organizations_url":"https://api.github.com/users/nerk/orgs","repos_url":"https://api.github.com/users/nerk/repos","events_url":"https://api.github.com/users/nerk/events{/privacy}","received_events_url":"https://api.github.com/users/nerk/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-01-01T05:20:34Z","updated_at":"2015-01-02T01:07:27Z","closed_at":"2015-01-01T17:18:34Z","body":"I'm not sure whether it is a general Asciidoctor issue, or a Brackets preview issue, but code snippets in the text relating to stylesheets are being mistaken for actual XML/HTML instructions and modified.\r\n\r\n________________\r\n\r\nThe following Asciidoc source code:\r\n\r\n```\r\n[source, xml]\r\n----    \r\n<?xml-stylesheet href=\"style.css\" type=\"text/css\"?>\r\n<?xml-stylesheet href=\"print.css\" media=\"print\" type=\"text/css\"?>\r\n----\r\n\r\n[source, html]\r\n----\r\n<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<link href=\"print.css\" rel=\"stylesheet\" media=\"print\" type=\"text/css\">\r\n----\r\n```\r\n\r\nIs compiled as:\r\n\r\n```\r\n<?xml-stylesheet href=\"style.css\" title=\"style.css\" type=\"text/css\"?>\r\n<?xml-stylesheet href=\"print.css\" title=\"print.css\" media=\"print\" type=\"text/css\"?>\r\n\r\n<link href=\"style.css\" title=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<link href=\"print.css\" title=\"print.css\" rel=\"stylesheet\" media=\"print\" type=\"text/css\">\r\n```\r\n\r\nNote the inserted `title` attributes."},"comment":{"url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/comments/68504363","html_url":"https://github.com/asciidoctor/brackets-asciidoc-preview/issues/20#issuecomment-68504363","issue_url":"https://api.github.com/repos/asciidoctor/brackets-asciidoc-preview/issues/20","id":68504363,"user":{"login":"AmeliaBR","id":9876129,"avatar_url":"https://avatars.githubusercontent.com/u/9876129?v=3","gravatar_id":"","url":"https://api.github.com/users/AmeliaBR","html_url":"https://github.com/AmeliaBR","followers_url":"https://api.github.com/users/AmeliaBR/followers","following_url":"https://api.github.com/users/AmeliaBR/following{/other_user}","gists_url":"https://api.github.com/users/AmeliaBR/gists{/gist_id}","starred_url":"https://api.github.com/users/AmeliaBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmeliaBR/subscriptions","organizations_url":"https://api.github.com/users/AmeliaBR/orgs","repos_url":"https://api.github.com/users/AmeliaBR/repos","events_url":"https://api.github.com/users/AmeliaBR/events{/privacy}","received_events_url":"https://api.github.com/users/AmeliaBR/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T01:07:27Z","updated_at":"2015-01-02T01:07:27Z","body":"@mojavelinux \r\n\r\nThat won't be required, because the script will run *after* code snippets have been escaped into `&lt;a&gt;` and so on.  There is no actual \"link\" there for querySelectorAll to select -- just a series of characters that look like code to us human beings."}}