Closed
Description
I'm using the example for pygmetize-bundled where you pass a callback through to highlight
:
highlight: function (code, lang, callback) {
pygmentize({ lang: lang, format: 'html' }, code, function (err, result) {
callback(err, result.toString());
});
}
But I get this error:
callback(err, result.toString()); │···················
^ │···················
TypeError: undefined is not a function │···················
at /var/www/bloot/lib/routes.js:22:4 │···················
at ChildProcess.exitClose (/var/www/bloot/node_modules/pygmentize-bundled/index.j│···················
s:24:13) │···················
at ChildProcess.EventEmitter.emit (events.js:98:17) │···················
at maybeClose (child_process.js:735:16) │···················
at Socket.<anonymous> (child_process.js:948:11) │···················
at Socket.EventEmitter.emit (events.js:95:17) │···················
at Pipe.close (net.js:451:12)
Metadata
Metadata
Assignees
Labels
No labels