<commit_before>[![npm version](https://badge.fury.io/js/react-markdown2.svg)](https://badge.fury.io/js/react-markdown2)
[![Build Status](https://travis-ci.org/reactbits/markdown.svg?branch=master)](https://travis-ci.org/reactbits/markdown)
[![Total downloads](https://img.shields.io/npm/dt/react-markdown2.svg)](https://www.npmjs.com/package/react-markdown2)

[![Dependency Status](https://david-dm.org/reactbits/markdown.svg)](https://david-dm.org/reactbits/markdown)
[![devDependency Status](https://david-dm.org/reactbits/markdown/dev-status.svg)](https://david-dm.org/reactbits/markdown#info=devDependencies)

# markdown
Yet another react component to render markdown.

## Install

```
npm install --save react-markdown2
```

## Usage

```jsx
import React, {Component} from "react";
import Markdown from "react-markdown2";

class Example extends Component {
    render() {
        return (
            <div>
                {/* Pass Markdown source to the `source` prop */}
                <Markdown source="**Markdown is awesome!**" />

                {/* Or pass it as children */}
                {/* You can nest React components, too */}
                <Markdown>
                    {`
                    ## Header
                    1. One
                    2. Two
                    `}

                    <div>Nested component</div>

                    {`Test`}
                </Markdown>
            </div>
        )
    }
}
```

## TODO
* [x] Use markdown-it to render markdown content
* [x] Use prismjs for syntax highlighting
* [ ] Diagrams
	* [x] [Sequance diagrams](https://github.com/bramp/js-sequence-diagrams)
	* [x] [Flowchart](https://github.com/adrai/flowchart.js)
	* [ ] Buttons to show source code of diagram
* [ ] Auto-embeddable links
	* [ ] Video services
		* [x] youtube
		* [x] vimeo<commit_msg>update todo<commit_after>[![npm version](https://badge.fury.io/js/react-markdown2.svg)](https://badge.fury.io/js/react-markdown2)
[![Build Status](https://travis-ci.org/reactbits/markdown.svg?branch=master)](https://travis-ci.org/reactbits/markdown)
[![Total downloads](https://img.shields.io/npm/dt/react-markdown2.svg)](https://www.npmjs.com/package/react-markdown2)

[![Dependency Status](https://david-dm.org/reactbits/markdown.svg)](https://david-dm.org/reactbits/markdown)
[![devDependency Status](https://david-dm.org/reactbits/markdown/dev-status.svg)](https://david-dm.org/reactbits/markdown#info=devDependencies)

# markdown
Yet another react component to render markdown.

## Install

```
npm install --save react-markdown2
```

## Usage

```jsx
import React, {Component} from "react";
import Markdown from "react-markdown2";

class Example extends Component {
    render() {
        return (
            <div>
                {/* Pass Markdown source to the `source` prop */}
                <Markdown source="**Markdown is awesome!**" />

                {/* Or pass it as children */}
                {/* You can nest React components, too */}
                <Markdown>
                    {`
                    ## Header
                    1. One
                    2. Two
                    `}

                    <div>Nested component</div>

                    {`Test`}
                </Markdown>
            </div>
        )
    }
}
```

## TODO
* [x] Use markdown-it to render markdown content
* [x] Use prismjs for syntax highlighting
* [ ] Diagrams
	* [x] [Sequance diagrams](https://github.com/bramp/js-sequence-diagrams)
	* [x] [Flowchart](https://github.com/adrai/flowchart.js)
	* [x] [Railroad diagrams](https://github.com/tabatkins/railroad-diagrams)
	* [ ] Buttons to show source code of diagram
* [ ] [KaTeX](https://github.com/Khan/KaTeX)
* [ ] Auto-embeddable links
	* [ ] Video services
		* [x] youtube
		* [x] vimeo
{'fraction_non_alphanumeric': 0.1595464135021097, 'fraction_numerical': 0.004219409282700422, 'mean_word_length': 2.3447971781305115, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 26, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1606252', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1162, 'n_words': 222}