README
react-markdown
React-Micromarkdown is a lightweight (5kb) React component which renders simple markdown strings. Based on micromarkdown.js by Simon Waldherr.
Try it out at https://jsbin.com/voverib/edit?js,output
Basic usage
import React, { Component } from 'react';
import MicroMarkdown from 'react-micromarkdown';
class Example extends React.Component {
render() {
return (
<MicroMarkdown source="make the last word **bold**" />
);
}
}
ReactDOM.render(
<Example />,
document.getElementById('root')
);
Installing
npm install --save react-micromarkdown
or if you're not using npm yet, simply include the compiled script:
<script src="https://laurajuliette.github.io/react-micromarkdown/reactmicromarkdown-compiled.js"></script>
License
MIT-licensed.
Alternatives
Need something more powerful but less lightweight? Check out react-markdown.