Skip to content

Commit 72b836f

Browse files
committed
* Fix for react bug with paragraph and setting inner html
1 parent cdc1c27 commit 72b836f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/templates/BlogTemplate/index.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ const BlogTemplate = ({ data }) => {
4646
{`${frontmatter.author} | ${frontmatter.date} | ${frontmatter.categories}`}
4747
</Typography>
4848
<Divider />
49-
<Typography
50-
variant="body2"
49+
<div
5150
color="textSecondary"
52-
component="p"
51+
/* eslint-disable-next-line react/no-danger */
5352
dangerouslySetInnerHTML={{ __html: html }}
5453
/>
5554
</CardContent>

0 commit comments

Comments
 (0)