add markdown

This commit is contained in:
fbruc03 2022-02-18 11:12:55 +01:00
parent f3f6819f05
commit 3a8f0c38f6

View File

@ -14,6 +14,8 @@ import Typography from "@material-ui/core/Typography";
import * as Blockly from "blockly";
import { initialXml } from "../Blockly/initialXml";
import ReactMarkdown from 'react-markdown'
class Assessment extends Component {
componentDidMount() {
this.props.workspaceName(this.props.name);
@ -81,7 +83,8 @@ class Assessment extends Component {
<Typography variant="h5">
{Blockly.Msg.tutorials_assessment_task}
</Typography>
<Typography>{currentTask.text}</Typography>
<Typography><ReactMarkdown>
{currentTask.text}</ReactMarkdown></Typography>
</Card>
<div
style={