Commit bf0b3db5 authored by Florent Chehab's avatar Florent Chehab
Browse files

fix(markdown, front): no bug in rendering code

* Fixed bug with incorrect HTML structure rendered for code blocks in markdown

Fixes #92
parent 5ecc475c
Pipeline #37118 passed with stages
in 4 minutes and 50 seconds
...@@ -125,12 +125,9 @@ const ListItemRenderer = (props, classes) => ( ...@@ -125,12 +125,9 @@ const ListItemRenderer = (props, classes) => (
); );
const CodeRenderer = (props) => ( const CodeRenderer = (props) => (
<Typography variant={"body2"} paragraph> // className={classes.code} would be override by typography variant
<pre > <Typography variant={"body2"} component='code' style={{fontFamily: "monospace"}}>
<code>
{props.value} {props.value}
</code>
</pre>
</Typography> </Typography>
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment