3.3.1 • Published 5 years ago

react-markdown-github v3.3.1

Weekly downloads
120
License
MIT
Repository
github
Last release
5 years ago

react-markdown-github

A React component that wraps react-markdown that:

Installation

npm install react-markdown-github

Usage

<MarkdownGithub 
  source={ markdown } 
  sourceUri='https://github.mycorp.com/org/component/blob/master/README.md'  
  transformLinkUri={ ({ uri, github, org, repo, filename, filepath }) => { } }
  transformImageUri={ ({ uri, github, org, repo, filename }) => {} }
  renderers={ code: myCodeFormatter } 
  className='myClass' />

Component Properties

  • sourceUri Absolute URL to orgional markdown. All relative links will be resolved relative to this URL.
  • transformLinkUri URL resolver function. To override the URL resolver and point a url to an alternate location.
  • transformImageUri image URL resolver function. Default behavior is to not modify image urls.
  • renderers An object of render function values with keys corresponding to Node Type to be passed to react-markdown.
  • className the CSS class passed to react-markdown.

Test

npm test
LICENSE: MIT
3.3.1

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago