react-markdown-syntax-highlight

1.0.0 • Public • Published

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>
    );
  }
}

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i react-markdown-syntax-highlight

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • shmck