1.0.1 • Published 7 years ago

react-micromarkdown v1.0.1

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

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.