react-remarkable
A React component for rendering Markdown with remarkable.
npm install --save react-remarkable
Usage
var React = ;var Markdown = ; var MyComponent = React;
Available props:
options
- Hash of Remarkable optionssource
- Markdown source. You can also pass the source as children, which allows you to mix React components and Markdown.container
- Element to use as container. Defaults todiv
.
Syntax Highlighting
Atom
You can enable syntax highlighting in Atom using the following steps:
Go to Settings > Packages > language-babel Settings > Enter this for JavaScript Tagged Literal Grammar Extensions:
"(?<=<Markdown>{)":source.gfm
Shortly you'll see that markdown syntax highlighting is enabled.
License
MIT