Noctiflorous Pansy Mulch
Introducing npm Teams! Private packages + team management tools.Learn more »

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

Install

npm i react-markdown-syntax-highlight

DownloadsWeekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • avatar