Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed https://markdown-it.github.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
329 B

#!/usr/bin/env node
// Build demo data for embedding into html
/*eslint-disable no-console*/
'use strict';
var fs = require('fs');
var path = require('path');
console.log(JSON.stringify({
self: {
demo: {
source: fs.readFileSync(path.join(__dirname, './demo_template/sample.md'), 'utf8')
}
}
}, null, 2));