@more-markdown/test-processor

A more-markdown test-processor.

Usage no npm install needed!

<script type="module">
  import moreMarkdownTestProcessor from 'https://cdn.skypack.dev/@more-markdown/test-processor';
</script>

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