3.4.0 • Published 4 years ago

md-mdast v3.4.0

Weekly downloads
130
License
-
Repository
github
Last release
4 years ago

md-mdast

npm.io

  • Markdown to MDAST converter.
  • Small and fast.
  • No dependencies.

Installation

npm install md-mdast

Usage

const {create} = require('md-mdast');

const parser = create();

console.log(parser.tokenizeBlock('*hello* __world__'));

Result:

{ type: 'root',
  children:
   [ { type: 'paragraph',
       children:
        [ { type: 'emphasis',
            children: [ { type: 'text', value: 'hello' } ] },
          { type: 'text', value: ' ' },
          { type: 'strong',
            children: [ { type: 'text', value: 'world' } ] } ] } ],
}

License

Unlicense public domain.

3.4.0

4 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago