Plugin for more-markdown to support rendering tree files.


000.0.86 years ago7 years agoMinified + gzip package size for @more-markdown/tree-processor in KB


more-markdown / tree-processor

A plugin for more-markdown that renders graphs in tree preorder notation.


You first need a more-markdown setup. Then you can install it via:

npm install @more-markdown/tree-processor


var moreMarkdown = require('more-markdown');
var treeProcessor = require('@more-markdown/tree-processor');

// create a processor that writes the final html
// to the element with the id 'output'
var proc = moreMarkdown.create('output', processors: [treeProcessor]);

proc.render("```tree" +
"A(B(D E(F))C)"

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.