apeman-react-markdown
v2.0.1
Published
apeman react package to render markdowns
Downloads
25
Maintainers
Readme
apeman-react-markdown
apeman react package to render markdowns
Installation
$ npm install apeman-react-markdown --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApMarkdown, ApMarkdownStyle} from 'apeman-react-markdown'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApMarkdownStyle />
<ApMarkdown/>
</div>
)
}
})
Components
ApMarkdown
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | src | string | null | | Source text | | links | object | null | | Link urls | | beforeCompile | func | (value) => value | | Converter before compile | | afterCompile | func | (value) => value | | Converter after compile |
License
This software is released under the MIT License.