Mustache and markdown escape testing

node v4.9.1
version: master
var mustache = require("mustache"); var md = require('markdown-it')({ typographer : true, breaks: true }); var markdownItAttrs = require('markdown-it-attrs'); md.use(markdownItAttrs); // Change this object to change your values var obj = { ID: "Alice's Adventures in Wonderland \t what is this", name : "some name", width: 200 }; var template = '{{ID}} - {{name}}{width={{width}}}'; console.log(mustache.render(template, obj));

no comments

    sign in to comment