Created
July 10, 2016 08:33
-
-
Save jamesmcallister/1e568dbe64473f5fe90aa8a8108ac03b to your computer and use it in GitHub Desktop.
webpack markdown
This file contains 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, { Component } from 'react'; | |
import fileurl from './readme.md' | |
class Markdown extends Component { | |
rawMarkup() { | |
return { __html: fileurl }; | |
} | |
render() { | |
return ( | |
<div dangerouslySetInnerHTML={this.rawMarkup() } /> | |
); | |
} | |
} | |
export default Markdown |
This file contains 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
{test: /\.md$/, loader: "html!markdown?gfm=false" }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment