mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
var _ = require('lodash');
|
|
|
|
module.exports = {
|
|
// Return non-parsed html
|
|
// since blocks are by default non-parsable, a simple identity method works fine
|
|
html: _.identity,
|
|
|
|
// Highlight a code block
|
|
// This block can be replaced by plugins
|
|
code: function(blk) {
|
|
return {
|
|
html: false,
|
|
body: blk.body
|
|
};
|
|
}
|
|
};
|