Nickel Plated Moose

    This package has been deprecated

    Author message:

    depreciated

    react-micromarkdown

    1.0.1 • Public • Published

    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.

    Install

    npm i react-micromarkdown

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • npm