mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 03:41:12 +00:00
fix code format (#6365)
This commit is contained in:
@@ -36,11 +36,11 @@ class SeafileMarkdownViewer extends React.Component {
|
||||
|
||||
changeInlineNode = (item) => {
|
||||
const { repoID } = this.props;
|
||||
let url, imagePath;
|
||||
let url; let imagePath;
|
||||
// isPublicWiki: in the old version, only public wiki need replace image url
|
||||
if (item.type == 'image') { // change image url
|
||||
url = item.data.src;
|
||||
const re = new RegExp(serviceURL + '/lib/' + repoID +'/file.*raw=1');
|
||||
const re = new RegExp(serviceURL + '/lib/' + repoID + '/file.*raw=1');
|
||||
// different repo
|
||||
if (re.test(url)) {
|
||||
// get image path
|
||||
@@ -90,7 +90,7 @@ class SeafileMarkdownViewer extends React.Component {
|
||||
value: markdownContent,
|
||||
scrollRef: this.scrollRef,
|
||||
onLinkClick: this.onLinkClick,
|
||||
...(isWiki && {beforeRenderCallback: this.modifyValueBeforeRender})
|
||||
...(isWiki && { beforeRenderCallback: this.modifyValueBeforeRender })
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user