1.0.0 • Published 8 years ago

react-markdown-syntax-highlight v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

React Markdown Syntax Highlight

React component for markdown blocks with syntax highlighting.

Example

import * as React from 'react';
import Markdown from 'react-markdown-syntax-highlight';

class SomeComponent extends React.Component{
  render() {
    return (
      <div>
        <Markdown># Renders Markdown
        `const a = 1;`
        `function b() { return a; }`
        </Markdown>
      </div>
    );
  }
}