1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

[shared file view] markdown: modifie UI for the 'head' & outline

This commit is contained in:
llj
2022-05-27 12:37:10 +08:00
parent 41d072f6e9
commit 7db323a63a
2 changed files with 6 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ const { repoID, sharedToken, rawPath, err } = window.shared.pageOptions;
class SharedFileViewMarkdown extends React.Component {
render() {
return <SharedFileView content={<FileContent />} />;
return <SharedFileView content={<FileContent />} fileType="md" />;
}
}
@@ -81,6 +81,7 @@ class FileContent extends React.Component {
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
markdownContent={this.state.markdownContent}
showTOC={true}
activeTitleIndex={''}
serviceURL={serviceURL}
sharedToken={sharedToken}
repoID={repoID}