{"action":"created","issue":{"url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/641","repository_url":"https://api.github.com/repos/styleguidist/react-styleguidist","labels_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/641/comments","events_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/641/events","html_url":"https://github.com/styleguidist/react-styleguidist/issues/641","id":265756872,"number":641,"title":"Styleguidist tries to render code blocks without language tag","user":{"login":"wkillerud","id":1223410,"avatar_url":"https://avatars1.githubusercontent.com/u/1223410?v=4","gravatar_id":"","url":"https://api.github.com/users/wkillerud","html_url":"https://github.com/wkillerud","followers_url":"https://api.github.com/users/wkillerud/followers","following_url":"https://api.github.com/users/wkillerud/following{/other_user}","gists_url":"https://api.github.com/users/wkillerud/gists{/gist_id}","starred_url":"https://api.github.com/users/wkillerud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkillerud/subscriptions","organizations_url":"https://api.github.com/users/wkillerud/orgs","repos_url":"https://api.github.com/users/wkillerud/repos","events_url":"https://api.github.com/users/wkillerud/events{/privacy}","received_events_url":"https://api.github.com/users/wkillerud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-16T12:45:35Z","updated_at":"2017-10-16T13:25:04Z","closed_at":"2017-10-16T13:02:11Z","author_association":"NONE","body":"> Any code block with a language tag of `js`, `jsx` or `javascript` will be rendered as a React component with an interactive playground\r\n\r\nFrom the [documentation](https://github.com/styleguidist/react-styleguidist/blob/master/docs/Documenting.md#usage-examples-and-readme-files) it looks like only code blocks with the language tab `js`, `jsx`, or `javascript` should render React components. However React Styleguidist even tries to render code blocks without a language tag.\r\n\r\nA workaround is to lie and mark the block as a valid but non-JavaScript/JSX language, for instance Java.\r\n\r\nA repo which demonstrates the issue and workaround with a component called `Dots`: https://github.com/wkillerud/example\r\n\r\nI would expect code blocks with no language set to be rendered as a code block and not an interactive version."},"comment":{"url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/comments/336885528","html_url":"https://github.com/styleguidist/react-styleguidist/issues/641#issuecomment-336885528","issue_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/641","id":336885528,"user":{"login":"wkillerud","id":1223410,"avatar_url":"https://avatars1.githubusercontent.com/u/1223410?v=4","gravatar_id":"","url":"https://api.github.com/users/wkillerud","html_url":"https://github.com/wkillerud","followers_url":"https://api.github.com/users/wkillerud/followers","following_url":"https://api.github.com/users/wkillerud/following{/other_user}","gists_url":"https://api.github.com/users/wkillerud/gists{/gist_id}","starred_url":"https://api.github.com/users/wkillerud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkillerud/subscriptions","organizations_url":"https://api.github.com/users/wkillerud/orgs","repos_url":"https://api.github.com/users/wkillerud/repos","events_url":"https://api.github.com/users/wkillerud/events{/privacy}","received_events_url":"https://api.github.com/users/wkillerud/received_events","type":"User","site_admin":false},"created_at":"2017-10-16T13:25:04Z","updated_at":"2017-10-16T13:25:04Z","author_association":"NONE","body":"Allright. Could the documentation perhaps be updated to reflect this then? :) I can update the quoted line and add an entry to the cookbook if you'd like."}}
{"actor":{"display_login":"wkillerud"}}