From 1d2097611be3de30016dbdfa2c0ebff6a337d4b1 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 28 Sep 2019 10:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=A2=98=E7=AD=94=E6=A1=88?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=BA=86=E5=85=AC=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/package.json | 1 - .../react/src/modules/page/component/ChooseAnswerView.js | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/public/react/package.json b/public/react/package.json index e91e61f03..3e86dae98 100644 --- a/public/react/package.json +++ b/public/react/package.json @@ -79,7 +79,6 @@ "react-url-query": "^1.4.0", "redux": "^4.0.0", "redux-thunk": "2.3.0", - "showdown": "^1.8.6", "store": "^2.0.12", "style-loader": "0.19.0", "styled-components": "^4.1.3", diff --git a/public/react/src/modules/page/component/ChooseAnswerView.js b/public/react/src/modules/page/component/ChooseAnswerView.js index 6edc083e2..b40c96507 100644 --- a/public/react/src/modules/page/component/ChooseAnswerView.js +++ b/public/react/src/modules/page/component/ChooseAnswerView.js @@ -6,10 +6,8 @@ import { withStyles } from 'material-ui/styles'; import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table'; import Paper from 'material-ui/Paper'; -import showdown from 'showdown' -const converter = new showdown.Converter() - // text = '# hello, markdown!', - // html = converter.makeHtml(text); +import { markdownToHTML } from 'educoder' + const styles = theme => ({ root: { @@ -34,7 +32,7 @@ const ChooseAnswerView = ({ gameAnswer, classes }) => { return (

第{index+1}题

-

+

); })}