1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 11:21:29 +00:00

Update editor (#4764)

* update seafile-editor

* update md-editor

* add translate
This commit is contained in:
songjiaqi1
2020-12-26 17:45:48 +08:00
committed by GitHub
parent d837293c56
commit 4cbbdcd725
19 changed files with 251 additions and 129 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react';
import MarkdownViewer from '@seafile/seafile-editor/dist/viewer/markdown-viewer';
import { mediaUrl } from '../../utils/constants';
import '../../css/md-file-view.css';
@@ -13,6 +14,7 @@ class FileContent extends React.Component {
<MarkdownViewer
markdownContent={fileContent}
showTOC={false}
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
/>
</div>
</div>