mcjo
v1.0.8
Published
Create javascript objects from markdown comments
Downloads
32
Readme
mcjo
Markdown comments to Javascript objects [mcjo]
A utility lib to parse commented markdown files into JS objects.
Usage
- Install
node > 10 - Run
npm ion project root - Run
npm buildandnpm stat
Comments
To represent start of a section, add the openning comment
<!-- start:{replace with field name} -->To represent end of a section, add the closing comment
<!-- end:{replace with field name} -->Example:
Markdown file with context
<!-- start:title -->
Low cost solutions
<!-- end:title -->Will be transformed into
{
"titel": "Low cost solutions"
}Test
Run npm test
