Skip to content

ShMcK/react-markdown-syntax-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A React component for outputting syntax highlighted Markdown

Resources

Stars

Watchers

Forks

Packages

No packages published