{"action":"opened","issue":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/24","labels_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/24/comments","events_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/24/events","html_url":"https://github.com/sapegin/react-styleguidist/issues/24","id":115096941,"number":24,"title":"HTML output from marked is not always valid","user":{"login":"mik01aj","id":3027415,"avatar_url":"https://avatars.githubusercontent.com/u/3027415?v=3","gravatar_id":"","url":"https://api.github.com/users/mik01aj","html_url":"https://github.com/mik01aj","followers_url":"https://api.github.com/users/mik01aj/followers","following_url":"https://api.github.com/users/mik01aj/following{/other_user}","gists_url":"https://api.github.com/users/mik01aj/gists{/gist_id}","starred_url":"https://api.github.com/users/mik01aj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mik01aj/subscriptions","organizations_url":"https://api.github.com/users/mik01aj/orgs","repos_url":"https://api.github.com/users/mik01aj/repos","events_url":"https://api.github.com/users/mik01aj/events{/privacy}","received_events_url":"https://api.github.com/users/mik01aj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T16:52:10Z","updated_at":"2015-11-04T16:52:10Z","closed_at":null,"body":"The following produces invalid HTML:\r\n\r\n```\r\nmarked.parse('<div>')\r\n```\r\n\r\n...and if the HTML is invalid, I get this error in console:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3027415/10944924/baf3be9e-831b-11e5-9fff-37f045774af8.png)\r\n\r\n...and all the code examples after the invalid HTML part are broken.\r\n\r\nI guess we could either:\r\n\r\na) report this as bug in `marked` (but they could say - well, you give inavlid html in, you get invalid html out - it's a big deal mostly with React)\r\nb) check if the produced HTML is valid and throw an error pointing to the problematic file\r\nc) use some other parser like [`react-markdown`](https://github.com/rexxars/react-markdown)"}}