Skip to content

tradle/rn-markdown-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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] } 
//   ] 
// }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published