Add className prop to <Content /> component
This commit is contained in:
parent
9ae7a61c65
commit
e10c05856a
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ import Marked from 'react-markdown'
|
|||
import { getImageSrc, getImageSrcset } from '../util/getImageUrl'
|
||||
import './Content.css'
|
||||
|
||||
export default ({ source }) => (
|
||||
export default ({ source, className = '' }) => (
|
||||
<Marked
|
||||
className='Content'
|
||||
className={`Content ${className}`}
|
||||
source={source}
|
||||
renderers={{
|
||||
Image: ImageWithSrcset
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue