Skip to content

Instantly share code, notes, and snippets.

@jonsherrard
Created August 1, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonsherrard/23c43dbdf42ec3273669b59c5336f699 to your computer and use it in GitHub Desktop.
Save jonsherrard/23c43dbdf42ec3273669b59c5336f699 to your computer and use it in GitHub Desktop.
Does this markdown library exist?
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