1.0.8 • Published 6 years ago

mcjo v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago