A React component for rendering Markdown with remarkable
npm install react-remarkablereact-remarkable
=================
A React component for rendering Markdown with remarkable.
```
npm install --save react-remarkable
`jsx
var React = require('react');
var Markdown = require('react-remarkable');
var MyComponent = React.createClass({
render() {
return (
prop /} {/ Or pass it as children /}
{/ You can nest React components, too /}
## Reasons React is great
1. Server-side rendering
2. This totally works:
Pretty neat!
}
});
`
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 to div.
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:
"(?<=

Shortly you'll see that markdown syntax highlighting is enabled.
