Commit bf0b3db5 authored by Florent Chehab's avatar Florent Chehab

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) => (
);
const CodeRenderer = (props) => (
<Typography variant={"body2"} paragraph>
<pre >
<code>
{props.value}
</code>
</pre>
// className={classes.code} would be override by typography variant
<Typography variant={"body2"} component='code' style={{fontFamily: "monospace"}}>
{props.value}
</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