{"action":"created","issue":{"url":"https://api.github.com/repos/wooorm/lowlight/issues/2","repository_url":"https://api.github.com/repos/wooorm/lowlight","labels_url":"https://api.github.com/repos/wooorm/lowlight/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wooorm/lowlight/issues/2/comments","events_url":"https://api.github.com/repos/wooorm/lowlight/issues/2/events","html_url":"https://github.com/wooorm/lowlight/issues/2","id":172051239,"number":2,"title":"Warning for missing \"console\" syntax","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wooorm/lowlight/labels/concept","name":"concept","color":"657b83"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-19T04:15:54Z","updated_at":"2016-08-19T11:59:07Z","closed_at":null,"body":"Following this https://gitter.im/MoOx/phenomic?at=57b6202998125cfb657bc8d7\r\n\r\nI am getting this warning.\r\n\r\n```\r\nWarning: %s Module build failed: Error: Expected `console` to be registered\r\n    at coreHighlight (/Users/moox/Sync/Development/phenomic/node_modules/lowlight/lib/core.js:354:15)\r\n    at Object.highlight (/Users/moox/Sync/Development/phenomic/node_modules/lowlight/lib/core.js:898:22)\r\n    at visitor (/Users/moox/Sync/Development/phenomic/node_modules/remark-highlight.js/dist/index.js:36:45)\r\n    at one (/Users/moox/Sync/Development/phenomic/node_modules/unist-util-visit/index.js:72:22)\r\n    at all (/Users/moox/Sync/Development/phenomic/node_modules/unist-util-visit/index.js:48:26)\r\n    at one (/Users/moox/Sync/Development/phenomic/node_modules/unist-util-visit/index.js:76:20)\r\n    at visit (/Users/moox/Sync/Development/phenomic/node_modules/unist-util-visit/index.js:82:5)\r\n    at /Users/moox/Sync/Development/phenomic/node_modules/remark-highlight.js/dist/index.js:42:45\r\n    at wrapped (/Users/moox/Sync/Development/phenomic/node_modules/trough/index.js:128:19)\r\n    at next (/Users/moox/Sync/Development/phenomic/node_modules/trough/index.js:81:24)\r\n```\r\n\r\nAs you mentionned on the chat, this is likely due to \"console\" not being recognized.\r\nRef https://github.com/isagalaev/highlight.js/issues/1126 (as it's not in highlight.js as well for now).\r\n\r\nI think one improvement is to make the warning message more clear. Something like\r\n\r\n```\r\nLowlight expects \"console\" syntax language to be registered. Code can be highlighted with the appropriate syntax.\r\n```"},"comment":{"url":"https://api.github.com/repos/wooorm/lowlight/issues/comments/240999847","html_url":"https://github.com/wooorm/lowlight/issues/2#issuecomment-240999847","issue_url":"https://api.github.com/repos/wooorm/lowlight/issues/2","id":240999847,"user":{"login":"wooorm","id":944406,"avatar_url":"https://avatars.githubusercontent.com/u/944406?v=3","gravatar_id":"","url":"https://api.github.com/users/wooorm","html_url":"https://github.com/wooorm","followers_url":"https://api.github.com/users/wooorm/followers","following_url":"https://api.github.com/users/wooorm/following{/other_user}","gists_url":"https://api.github.com/users/wooorm/gists{/gist_id}","starred_url":"https://api.github.com/users/wooorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooorm/subscriptions","organizations_url":"https://api.github.com/users/wooorm/orgs","repos_url":"https://api.github.com/users/wooorm/repos","events_url":"https://api.github.com/users/wooorm/events{/privacy}","received_events_url":"https://api.github.com/users/wooorm/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T11:59:07Z","updated_at":"2016-08-19T11:59:07Z","body":"No major, I doubt people are relying on their highlighting to throw. Only case I can imagine for that is tests, but those tests are testing the wrong thing anyhow and should’ve reporter it here already :)"}}
{"actor":{"display_login":"wooorm"}}