{"action":"created","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/918","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/918/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/918/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/918/events","html_url":"https://github.com/GitbookIO/gitbook/issues/918","id":106166180,"number":918,"title":"Make code highlighter configurable","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GitbookIO/gitbook/labels/feature","name":"feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GitbookIO/gitbook/milestones/1","html_url":"https://github.com/GitbookIO/gitbook/milestones/2.4.0","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/milestones/1/labels","id":1290787,"number":1,"title":"2.4.0","description":"","creator":{"login":"SamyPesse","id":845425,"avatar_url":"https://avatars.githubusercontent.com/u/845425?v=3","gravatar_id":"","url":"https://api.github.com/users/SamyPesse","html_url":"https://github.com/SamyPesse","followers_url":"https://api.github.com/users/SamyPesse/followers","following_url":"https://api.github.com/users/SamyPesse/following{/other_user}","gists_url":"https://api.github.com/users/SamyPesse/gists{/gist_id}","starred_url":"https://api.github.com/users/SamyPesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamyPesse/subscriptions","organizations_url":"https://api.github.com/users/SamyPesse/orgs","repos_url":"https://api.github.com/users/SamyPesse/repos","events_url":"https://api.github.com/users/SamyPesse/events{/privacy}","received_events_url":"https://api.github.com/users/SamyPesse/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-09-04T16:09:18Z","updated_at":"2015-09-12T15:23:47Z","due_on":"2015-09-24T22:00:00Z","closed_at":null},"comments":5,"created_at":"2015-09-12T15:11:00Z","updated_at":"2015-09-12T15:28:57Z","closed_at":null,"body":"Currently highlight.js is used, but I don't quite like the way it highlights JS, and in addition, it has multiple problems with JSX. I would much rather use [Prism](http://prismjs.com).\r\n\r\nIt does not appear that this is configurable. (I don't want to create a plugin with a custom tag because that would break vanilla doc display on the Github repo.)\r\n\r\nHow would I go about switching to Prism? For now, I'll probably fork, but it would be nice to allow this to be configurable."},"comment":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/comments/139785751","html_url":"https://github.com/GitbookIO/gitbook/issues/918#issuecomment-139785751","issue_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/918","id":139785751,"user":{"login":"SamyPesse","id":845425,"avatar_url":"https://avatars.githubusercontent.com/u/845425?v=3","gravatar_id":"","url":"https://api.github.com/users/SamyPesse","html_url":"https://github.com/SamyPesse","followers_url":"https://api.github.com/users/SamyPesse/followers","following_url":"https://api.github.com/users/SamyPesse/following{/other_user}","gists_url":"https://api.github.com/users/SamyPesse/gists{/gist_id}","starred_url":"https://api.github.com/users/SamyPesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamyPesse/subscriptions","organizations_url":"https://api.github.com/users/SamyPesse/orgs","repos_url":"https://api.github.com/users/SamyPesse/repos","events_url":"https://api.github.com/users/SamyPesse/events{/privacy}","received_events_url":"https://api.github.com/users/SamyPesse/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T15:28:57Z","updated_at":"2015-09-12T15:28:57Z","body":"The current solution is not perfect for performance (it requires re-parsing HTML during `gitbook build`), but it works perfectly.\r\n\r\nThe new solution will be released next week. You can start a `gitbook-plugin-prism` repository using the current solution and update it once the version `2.4.0` has been released.\r\nI believe this is a better solution that maintaining a fork"}}