markdown-it-conref
Adds the ability to use DITA Content References —or conrefs— as a markdown-it
plugin.
Install
$ npm install --save markdown-it-conref
Usage
Using variables from an object
var md = ;var conref = ; var options = data: site: batman: 'Bruce Wayne' ; md; console; // Output// '<p>hello Bruce Wayne</p>\n'
json
or yml
file
Using variables from a var md = ;var conref = ; var options = file: __dirname + '/test/data.yml' md; console; // Output// '<p>hello Bruce Wayne</p>\n'
yaml:
site: batman: 'Bruce Wayne' foo: 'Foo' bar: 'Bar'
Demo
License
MIT