1.0.2 • Published 7 years ago

the-markdown v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

the-markdown

Build Status npm Version JS Standard

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

NameTypeDescriptionDefault
srcstringMarkdown source stringnull
varsobjectVariables to inject{}
paddedboolHas paddingfalse

TheMarkdownStyle

Style for TheMarkdown

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links