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.
30 lines
754 B
30 lines
754 B
5 years ago
|
#!/usr/bin/env node
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
/* eslint-env es6 */
|
||
|
|
||
|
const shell = require('shelljs');
|
||
|
|
||
|
shell.rm('-rf', 'demo');
|
||
|
shell.mkdir('demo');
|
||
|
|
||
|
shell.exec('support/demodata.js > support/demo_template/sample.json');
|
||
|
|
||
|
shell.exec('node_modules/.bin/pug support/demo_template/index.pug --pretty \
|
||
|
--obj support/demo_template/sample.json \
|
||
|
--out demo');
|
||
|
|
||
|
shell.exec('node_modules/.bin/stylus -u autoprefixer-stylus \
|
||
|
< support/demo_template/index.styl \
|
||
|
> demo/index.css');
|
||
|
|
||
|
shell.rm('-rf', 'support/demo_template/sample.json');
|
||
|
|
||
|
shell.exec('node_modules/.bin/browserify ./ -s markdownit \
|
||
|
> demo/markdown-it.js');
|
||
|
shell.exec('node_modules/.bin/browserify support/demo_template/index.js \
|
||
|
> demo/index.js');
|
||
|
|
||
|
shell.cp('support/demo_template/README.md', 'demo/');
|