Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including obj-md with all npm packages installed. Try it out:

var objMd = require("obj-md")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

obj-md v0.0.2

Parses js obj to markdown

obj-md

Parses js obj to markdown

Usage

var parseMd = require('obj-md')
var md = parseMdObj(mdObj)
console.log(md)

Expects:

# Memo

Stuffs to deal with

## Todo

- Code
- Go to bed

## Done

1. Housework
1. Read

Inputs:

[
  {
    '# Memo': [
      'Stuffs to deal with',
      {
        '## Todo': [
          ['Code', 'Go to bed'] // unordered list
        ],
        '## Done': [
          [['Housework', 'Read']] // ordered list
        ]
      }
    ]
  }
]

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free