|
|
|
@ -6,7 +6,7 @@ import '../style.css'
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import GraduateTopicReply from './GraduateTopicReply'
|
|
|
|
|
|
|
|
|
|
import { ConditionToolTip,markdownToHTML } from 'educoder'
|
|
|
|
|
import { ConditionToolTip,MarkdownToHtml } from 'educoder'
|
|
|
|
|
|
|
|
|
|
const $=window.$;
|
|
|
|
|
const type={1: "设计",2: "论文", 3: "创作"}
|
|
|
|
@ -21,18 +21,6 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
topicInfo:undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
updatamakedown=(id)=>{
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
var shixunDescr = window.editormd.markdownToHTML(id, {
|
|
|
|
|
htmlDecode: "style,script,iframe",
|
|
|
|
|
taskList: true,
|
|
|
|
|
tex: true,
|
|
|
|
|
flowChart: true,
|
|
|
|
|
sequenceDiagram: true
|
|
|
|
|
});
|
|
|
|
|
$("#"+id+" p:first").addClass("ReactMarkdown");
|
|
|
|
|
}, 200)
|
|
|
|
|
}
|
|
|
|
|
componentDidMount=()=>{
|
|
|
|
|
let course_id=this.props.match.params.course_id;
|
|
|
|
|
let graduation_topic_id=this.props.match.params.graduation_topic_id;
|
|
|
|
@ -47,7 +35,6 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
this.updatamakedown("gratuationTopic_Detail");
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
let{topicInfo}=this.state
|
|
|
|
@ -67,7 +54,7 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
<div id="gratuationTopic_Detail" className="new_li markdown-body justify">
|
|
|
|
|
{
|
|
|
|
|
topicInfo && topicInfo.description!="" &&
|
|
|
|
|
<span className="markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML(topicInfo.description)}}></span>
|
|
|
|
|
<MarkdownToHtml content={topicInfo.description} ></MarkdownToHtml>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|