1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

fix markdown viewer (#4615)

This commit is contained in:
songjiaqi1
2020-07-07 18:27:16 +08:00
committed by GitHub
parent b49cc1fe69
commit 72b1edd832
3 changed files with 17 additions and 100 deletions

View File

@@ -61,10 +61,7 @@ class FileContent extends React.Component {
}
modifyValueBeforeRender = (value) => {
let nodes = value.document.nodes;
let newNodes = Utils.changeMarkdownNodes(nodes, this.changeImageURL);
value.document.nodes = newNodes;
return value;
return Utils.changeMarkdownNodes(value, this.changeImageURL);
}
render() {