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
383 B

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