@more-markdown/test-processor

A more-markdown test-processor.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@more-markdown/test-processor
0.1.107 years ago7 years agoMinified + gzip package size for @more-markdown/test-processor in KB

Readme

more-markdown / test-processor
A plugin for more-markdown that runs tests on the markdown contents.
Installation
You first need a more-markdown setup. Then you can install it via:
npm install @more-markdown/test-processor
Usage
var moreMarkdown = require('more-markdown');
var testProcessor = require('@more-markdown/test-processor');

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

proc.render("```test" +
"it('should do X', function(){...})" +
"```");

Or have a look at the markdown-editor-example