gorm/gitbook/lib/template/blocks.js
2016-02-26 22:05:59 +08:00

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
};
}
};