fix: markdown render of image
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>`
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user