This package has been deprecated

Author message:

WARNING: This package is unmaintained and might be broken. If you would like to maintain it, please contact mail@juliustens.eu

@juliuste/mdjson

0.0.2 • Public • Published

@juliuste/mdjson

Transform markdown to an object with headings as keys. Originally forked from yoshuawuyts/mdjson.

npm version Build Status Greenkeeper badge license chat on gitter

Installation

npm install @juliuste/mdjson

Usage

const mdjson = require('@juliuste/mdjson')

const dictionary = mdjson(`
    text before any headings will be ignored

    # my heading
    oh wow, amazing
    newline means new paragraph

    another paragraph

    ### another heading
    gorgeous copy, stunning, [some other markdown](https://www.abc.de)

    ## headings without content will also be ignored
`)
// => {
//  'my heading': 'oh wow, amazing\n\nnewline means new paragraph\n\nanother paragraph',
//  'another heading': 'gorgeous copy, stunning, [some other markdown](https://www.abc.de)'
//}

Contributing

If you found a bug or want to propose a feature, feel free to visit the issues page.

Package Sidebar

Install

npm i @juliuste/mdjson

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

4.92 kB

Total Files

4

Last publish

Collaborators

  • juliuste