ui: markdown editor darkmode support

This commit is contained in:
undefined committed 2024-08-31 21:06:09 +08:00
1 parent 66dcdfd590
commit 5d9ca5f64e
1 file changed
+1
@@ -170,6 +170,7 @@ export default class Editor extends DOMAttachedObject {
codeStyleReverse={false}
ref={renderCallback}
modelValue={val}
theme={['light', 'dark'].includes(UserContext.theme) ? UserContext.theme : 'light'}
noMermaid
noPrettier
autoDetectCode