{"action":"created","issue":{"url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/19","labels_url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/19/comments","events_url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/19/events","html_url":"https://github.com/chuangbo/meteor-marked/issues/19","id":65402633,"number":19,"title":"Use with highlight.js","user":{"login":"sangyoo91","id":8974551,"avatar_url":"https://avatars.githubusercontent.com/u/8974551?v=3","gravatar_id":"","url":"https://api.github.com/users/sangyoo91","html_url":"https://github.com/sangyoo91","followers_url":"https://api.github.com/users/sangyoo91/followers","following_url":"https://api.github.com/users/sangyoo91/following{/other_user}","gists_url":"https://api.github.com/users/sangyoo91/gists{/gist_id}","starred_url":"https://api.github.com/users/sangyoo91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangyoo91/subscriptions","organizations_url":"https://api.github.com/users/sangyoo91/orgs","repos_url":"https://api.github.com/users/sangyoo91/repos","events_url":"https://api.github.com/users/sangyoo91/events{/privacy}","received_events_url":"https://api.github.com/users/sangyoo91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T09:01:46Z","updated_at":"2015-04-10T16:03:47Z","closed_at":null,"body":"I tried this in `Template.foo.rendered` \r\n\r\n```\r\n\tvar marked = require('marked');\r\n\r\n\t// Synchronous highlighting with highlight.js\r\n\tmarked.setOptions({\r\n\t  highlight: function (code) {\r\n\t    return require('highlight.js').highlightAuto(code).value;\r\n\t  }\r\n\t});\r\n```\r\n\r\nbut it does not work. How would I use highlight.js with this?\r\n\r\nI'm using\r\n\r\nsimple:highlight.js\r\n\r\nwith this package."},"comment":{"url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/comments/91602005","html_url":"https://github.com/chuangbo/meteor-marked/issues/19#issuecomment-91602005","issue_url":"https://api.github.com/repos/chuangbo/meteor-marked/issues/19","id":91602005,"user":{"login":"acemtp","id":103561,"avatar_url":"https://avatars.githubusercontent.com/u/103561?v=3","gravatar_id":"","url":"https://api.github.com/users/acemtp","html_url":"https://github.com/acemtp","followers_url":"https://api.github.com/users/acemtp/followers","following_url":"https://api.github.com/users/acemtp/following{/other_user}","gists_url":"https://api.github.com/users/acemtp/gists{/gist_id}","starred_url":"https://api.github.com/users/acemtp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemtp/subscriptions","organizations_url":"https://api.github.com/users/acemtp/orgs","repos_url":"https://api.github.com/users/acemtp/repos","events_url":"https://api.github.com/users/acemtp/events{/privacy}","received_events_url":"https://api.github.com/users/acemtp/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T16:03:47Z","updated_at":"2015-04-10T16:03:47Z","body":"like this:\r\n\r\n    marked.setOptions({\r\n      highlight: function (code) { return hljs.highlightAuto(code).value; }\r\n    });\r\n"}}