NOTE: This project is under active development. APIs subject to change.
Walks a Toga abstract syntax tree, finds all block and tag descriptions, parses them as Markdown, and replaces the values with the HTML output.
$ npm install toga-markdown
var toga = require('toga'),
js = require('toga-js'),
md = require('toga-markdown'),
pura = require('toga-pura'),
config = {
src: './src/assets/**/*.js',
dest: './web/docs'
};
toga
.src(config.src)
.pipe(js.parser())
.pipe(md.formatter())
.pipe(pura.compiler())
.pipe(toga.dest(config.dest));
Standards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.
$ npm test
MIT © Shannon Moeller