Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-to-json

A plugin to transform simple Markdown files into JSON files.

Usage

First install the plugin

Then, add it to your gulpfile.js

var md2json = require('md-to-json');

Use it:

gulp.task('md2json_task', function() {
  return gulp.src('./file.md')
  .pipe(md2json())
  .pipe(gulp.dest('.'));
})

Example

Input: test.md

# Name
My name

# Attributes
- Color Vision
- Hair on Head

# MDCode
      My name __is__ md:
      - A
      - B
      - C

# End Tag
Text

# Empty

Output: test.json

{
  "Name": "My name",
  "Attributes": [
    "Color Vision",
    "Hair on Head"
  ],
  "MDCode": "My name __is__ md:\n- A\n - B\n- C",
  "End_Tag": "Text",
  "Empty": ""
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages