Created
August 1, 2017 14:29
-
-
Save jonsherrard/23c43dbdf42ec3273669b59c5336f699 to your computer and use it in GitHub Desktop.
Does this markdown library exist?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { render } from 'react-dom' | |
import SomeComponent from './some-component-in-the-project.js' | |
import Md from 'markdown-library' | |
const Blog = (props) => | |
<Md> | |
# My blog post | |
## Id also like this to be syntax highlighted | |
`And render components inline like this:` | |
<SomeComponent /> | |
* sweet | |
* great | |
* brilliant | |
</Md> | |
render(<Blog />, document.getElementById('root')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment