summaryrefslogtreecommitdiffstats
path: root/lib/template/blocks.js
blob: a079cdea068101e38171d87f9711eff864b1f140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
        };
    }
};