镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
adapt mermaid to dark mode (#1476)
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>
这个提交包含在:
@@ -102,6 +102,10 @@ const uml = async className => {
|
||||
messageFontSize: "16px"
|
||||
}
|
||||
}
|
||||
if (document.body.classList.contains("dark")) {
|
||||
defaultConfig.theme = "dark"
|
||||
}
|
||||
|
||||
const Module = await import('./file=themes/mermaid_editor.js');
|
||||
|
||||
function do_render(block, code, codeContent) {
|
||||
|
||||
@@ -111,6 +111,7 @@ js_code_for_toggle_darkmode = """() => {
|
||||
} else {
|
||||
document.querySelector('body').classList.add('dark');
|
||||
}
|
||||
document.querySelectorAll('code2').forEach(code => {code.remove();})
|
||||
}"""
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户