rn-markdown-parser
markdown parser for react-native using the great [marked](https://github.com/chjj/marked) parser
Last updated 2 years ago by tenaciousmv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rn-markdown-parser 
SYNC missed versions from official npm registry.

rn-markdown-parser

markdown parser for react-native using the great marked parser

Usage

const { parse } = require('rn-markdown-parser')

// opts accepted by the marked parser (https://github.com/chjj/marked)
const markedOpts = {}
const parsed = parse(`
# My Markdown Heading

- list item 1
- list item 2
`, markedOpts)

console.log(parsed)

// { 
//   type: 'container',
//   children: [ 
//     { type: 'heading', depth: 1, children: [Object] },
//     { type: 'list', ordered: false, children: [Object] } 
//   ] 
// }

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |