1.0.2 • Published 7 years ago
the-markdown v1.0.2
the-markdown
Markdown of the-components
Installation
$ npm install the-markdown --save
Usage
'use strict'
import React from 'react'
import { TheMarkdown, TheMarkdownStyle } from 'the-markdown'
class ExampleComponent extends React.PureComponent {
render () {
return (
<div>
<TheMarkdownStyle/>
<TheMarkdown src={`
# This is Title
* List Item 01
* List Item 02
`}/>
</div>
)
}
}
export default ExampleComponent
Components
TheMarkdown
Markdown of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
src | string | Markdown source string | null |
vars | object | Variables to inject | {} |
padded | bool | Has padding | false |
TheMarkdownStyle
Style for TheMarkdown
Props
Name | Type | Description | Default |
---|---|---|---|
options | object | Style options | {} |
License
This software is released under the MIT License.