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

@@ -359,16 +359,578 @@
      %7D;%0A
+    %7D,%0A%0A    // Render some markdown to HTML%0A    markdown: function(blk) %7B%0A        return this.book.renderInline('markdown', blk.body)%0A        .then(function(out) %7B%0A            return %7B body: out %7D;%0A        %7D);%0A    %7D,%0A    asciidoc: function(blk) %7B%0A        return this.book.renderInline('asciidoc', blk.body)%0A        .then(function(out) %7B%0A            return %7B body: out %7D;%0A        %7D);%0A    %7D,%0A    markup: function(blk) %7B%0A        return this.book.renderInline(this.ctx.file.type, blk.body)%0A        .then(function(out) %7B%0A            return %7B body: out %7D;%0A        %7D);%0A
     %7D%0A%7D;

Add block "markdown", "asciidoc" and "markup"