1.0.8 • Published 4 years ago

mcjo v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

mcjo

Markdown comments to Javascript objects mcjo

A utility lib to parse commented markdown files into JS objects.

Usage

  • Install node > 10
  • Run npm i on project root
  • Run npm build and npm 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

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago