{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/58","repository_url":"https://api.github.com/repos/PolymerElements/iron-component-page","labels_url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/58/comments","events_url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/58/events","html_url":"https://github.com/PolymerElements/iron-component-page/issues/58","id":111302756,"number":58,"title":"JSON.parse() fails for asciidoctor comments","user":{"login":"kito99","id":3187538,"avatar_url":"https://avatars.githubusercontent.com/u/3187538?v=3","gravatar_id":"","url":"https://api.github.com/users/kito99","html_url":"https://github.com/kito99","followers_url":"https://api.github.com/users/kito99/followers","following_url":"https://api.github.com/users/kito99/following{/other_user}","gists_url":"https://api.github.com/users/kito99/gists{/gist_id}","starred_url":"https://api.github.com/users/kito99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kito99/subscriptions","organizations_url":"https://api.github.com/users/kito99/orgs","repos_url":"https://api.github.com/users/kito99/repos","events_url":"https://api.github.com/users/kito99/events{/privacy}","received_events_url":"https://api.github.com/users/kito99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T01:13:49Z","updated_at":"2016-02-03T21:47:09Z","closed_at":null,"body":"I wonder if iron-components-page should perhaps strip out comments when it tries to parse an HTML file. I'm using [Asciidoctor](http://asciidoctor.org/) to generate labs from HTML files, and it chokes on the standard Asciidoc identifiers for code snippets. For example:\r\n\r\n````html\r\n\r\n<!-- tag::body[] -->\r\n<body unresolved>   <!--1-->\r\n\t  <h1>Hacking Web Components: Polymer Deluxe Counter</h1>\r\n\t  <iron-component-page src=\"deluxe-counter.html\"</iron-component-page>  <!--2-->\r\n  </div>\r\n</paper-header-panel>\r\n</body>\r\n<!-- end::body[] -->\r\n\r\n````\r\n\r\nThis snippet chokes in JSON.parse() in iron-component-page.html:\r\n\r\n````javascript\r\n\r\n    _loadJson: function() {\r\n...\r\n        var json = JSON.parse(textContent);\r\n    },\r\n\r\n````\r\n\r\nFull stack trace:\r\n\r\n````\r\n end::body[] SyntaxError: Unexpected token e(…)Polymer._loadJson @ iron-component-page.html:281Polymer.ready @ iron-component-page.html:250Polymer.Base._addFeature._invokeBehavior @ polymer-micro.html:356Polymer.Base._addFeature._doBehavior @ polymer-micro.html:351Polymer.Base._addFeature._readySelf @ polymer-mini.html:80Polymer.Base._addFeature._ready @ polymer-mini.html:67Polymer.Base._addFeature._tryReady @ polymer-mini.html:56Polymer.Base._addFeature._initFeatures @ polymer.html:3221Polymer.Base.createdCallback @ polymer-micro.html:151\r\niron-component-page.html:277 Uncaught SyntaxError: Unexpected token ePolymer._loadJson @ iron-component-page.html:277Polymer.ready @ iron-component-page.html:250Polymer.Base._addFeature._invokeBehavior @ polymer-micro.html:356Polymer.Base._addFeature._doBehavior @ polymer-micro.html:351Polymer.Base._addFeature._readySelf @ polymer-mini.html:80Polymer.Base._addFeature._ready @ polymer-mini.html:67Polymer.Base._addFeature._tryReady @ polymer-mini.html:56Polymer.Base._addFeature._initFeatures @ polymer.html:3221Polymer.Base.createdCallback @ polymer-micro.html:151\r\n````"},"comment":{"url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/comments/179487113","html_url":"https://github.com/PolymerElements/iron-component-page/issues/58#issuecomment-179487113","issue_url":"https://api.github.com/repos/PolymerElements/iron-component-page/issues/58","id":179487113,"user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T21:47:09Z","updated_at":"2016-02-03T21:47:09Z","body":"This smells like an escaping problem."}}