Fix style error
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
import React from "react"
|
import React, { PropTypes } from "react"
|
||||||
import Remarkable from "react-remarkable"
|
import Remarkable from "react-remarkable"
|
||||||
import sanitize from "sanitize-html"
|
import sanitize from "sanitize-html"
|
||||||
|
|
||||||
export default function Markdown({ source }) {
|
function Markdown({ source }) {
|
||||||
const sanitized = sanitize(source)
|
const sanitized = sanitize(source)
|
||||||
return <Remarkable
|
return <Remarkable
|
||||||
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||||
source={sanitized}
|
source={sanitized}
|
||||||
></Remarkable>
|
></Remarkable>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Markdown.propTypes = {
|
||||||
|
source: PropTypes.string.isRequired
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Markdown
|
||||||
|
|||||||
Reference in New Issue
Block a user