Skip to content
This repository was archived by the owner on Jan 1, 2022. It is now read-only.

Commit f0d004b

Browse files
committed
fix: Breaking change in react-markdown
1 parent cf258fb commit f0d004b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/LatestNews.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const LatestNews = ({ homepage=false }) => {
3636
return news ? (
3737
news.map((a, i) => (
3838
<div className={`news-article ${homepage ? 'shadow' : '' }`} key={`article${i}`}>
39-
<Markdown source={a} />
39+
<Markdown>{a}</Markdown>
4040
</div>
4141
))
4242
) : (

src/components/mdx/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Preview = props => (
66
<>
77
<blockquote style={{display: 'relative'}}>
88
<h5>{props.frontmatter.title}</h5>
9-
<Markdown source={props.frontmatter.about} />
9+
<Markdown>{props.frontmatter.about}</Markdown>
1010
<ul className='links'>
1111
{props.frontmatter.goals.map( goal => <li key={goal}>{goal}</li>)}
1212
</ul>

0 commit comments

Comments
 (0)