fix(font): avoid overriding monospace fonts for code blocks, closes #1805 (#2474)

This commit is contained in:
Huang Xin
2025-11-19 11:27:45 +05:30
committed by GitHub
parent 9a6bed52dd
commit 975549fca0
+1 -1
View File
@@ -100,7 +100,7 @@ const getFontStyles = (
pre, code, kbd {
font-family: var(--monospace);
}
body *:not(pre):not(code):not(kbd):not(pre *):not(code *):not(kbd *) {
body *:not(pre, code, kbd, .code):not(pre *, code *, kbd *, .code *) {
${overrideFont ? 'font-family: revert !important;' : ''}
}
`;