add markdown
This commit is contained in:
parent
f3f6819f05
commit
3a8f0c38f6
@ -14,6 +14,8 @@ import Typography from "@material-ui/core/Typography";
|
|||||||
import * as Blockly from "blockly";
|
import * as Blockly from "blockly";
|
||||||
import { initialXml } from "../Blockly/initialXml";
|
import { initialXml } from "../Blockly/initialXml";
|
||||||
|
|
||||||
|
import ReactMarkdown from 'react-markdown'
|
||||||
|
|
||||||
class Assessment extends Component {
|
class Assessment extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.props.workspaceName(this.props.name);
|
this.props.workspaceName(this.props.name);
|
||||||
@ -81,7 +83,8 @@ class Assessment extends Component {
|
|||||||
<Typography variant="h5">
|
<Typography variant="h5">
|
||||||
{Blockly.Msg.tutorials_assessment_task}
|
{Blockly.Msg.tutorials_assessment_task}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>{currentTask.text}</Typography>
|
<Typography><ReactMarkdown>
|
||||||
|
{currentTask.text}</ReactMarkdown></Typography>
|
||||||
</Card>
|
</Card>
|
||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user