fix: markdown render of image

This commit is contained in:
Innei
2022-08-15 00:05:42 +08:00
parent 00825d0843
commit 03a7207913
3 changed files with 10 additions and 5 deletions

View File

@@ -9,10 +9,10 @@ export const generateDefaultConfig: () => IConfig = () => ({
keywords: [],
},
url: {
wsUrl: '', // todo
adminUrl: '',
serverUrl: '',
webUrl: '',
wsUrl: 'http://127.0.0.1:2333', // todo
adminUrl: 'http://127.0.0.1:2333/proxy/qaqdmin',
serverUrl: 'http://127.0.0.1:2333',
webUrl: 'http://127.0.0.1:2323',
},
mailOptions: {
enable: false,

View File

@@ -101,9 +101,14 @@ export class ConfigsService {
if (!allOptionKeys.has(name)) {
return
}
// skip url patch in dev mode
if (isDev && name === 'url') {
return
}
const value = field.value
mergedConfig[name] = { ...mergedConfig[name], ...value }
})
await this.setConfig(mergedConfig)
this.configInitd = true
}

View File

@@ -390,7 +390,7 @@ ${text.trim()}
return `<figure>
<img src="${xss(src)}"/>
<figcaption style="text-align: center; margin: 1em auto;">${xss(
alt,
title || alt,
)}</figcaption></figure>`
},