1.0.8 • Published 6 years ago
mcjo v1.0.8
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