patchkit-markdown

Render markdown (commonly used in messages)


Keywords
react
License
GPL-3.0
Install
npm install patchkit-markdown@1.0.1

Documentation

Markdown

Render markdown (commonly used in messages)

import * as Markdown from 'patchkit-markdown'

<Markdown.Block md={md} />
<Markdown.Inline md={md} />

// if provided, msg will supply username lookup for @-mentions
<Markdown.Block md={md} msg={msg} />

Use the .less file:

@import "node_modules/patchkit-markdown/styles.less"