yaml-markdown
Extend the yaml-js parser with a markdown type, json-wrapped output is optional.
install
npm install yaml-markdown
usage
Use the custom !md
and !md-json
tags to load the markdown-files (the given path is relative to the .yml
-file).
test_markdown: !md './example.md'test_markdown_json: !md-json './example.md'
Use the exposed methods to load the yaml with the markdown-schema file.
var loadYaml = ; var path = ; var p = path; ;
Additional options for the yaml-parser
can be used via a third-attribute to the exposed function.