帮助中心数据实现动态渲染

This commit is contained in:
Eamon-meng
2026-06-11 16:30:24 +08:00
parent 99039b6622
commit 7947fc48a2
10 changed files with 287 additions and 97 deletions

View File

@@ -156,8 +156,25 @@
}
}
/* highlight.js 样式覆盖 */
pre code.hljs {
background: inherit;
padding: 0;
/* highlight.js 样式覆盖 - 确保代码块高亮在前台正常显示 */
.prose pre {
background: #2b2b2b;
color: #abb2bf;
border-radius: 0.5rem;
padding: 1rem 1.25rem;
overflow-x: auto;
font-size: 0.875rem;
line-height: 1.6;
}
.prose pre code {
background: transparent;
padding: 0;
color: inherit;
font-size: inherit;
}
.prose pre code.hljs {
background: inherit;
padding: 0;
}