md-mdast
Tiny but fast Markdown to AST parser
Last updated 5 months ago by streamich .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install md-mdast 
SYNC missed versions from official npm registry.

md-mdast

  • 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.

Current Tags

  • 3.4.0                                ...           latest (5 months ago)

14 Versions

  • 3.4.0                                ...           5 months ago
  • 3.3.0                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (18)

Copyright 2014 - 2016 © taobao.org |