From 975549fca01e901bbd31ccfae1c3b6b0df4c7f34 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 19 Nov 2025 11:27:45 +0530 Subject: [PATCH] fix(font): avoid overriding monospace fonts for code blocks, closes #1805 (#2474) --- apps/readest-app/src/utils/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index babdcfb0..8c99d0fc 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -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;' : ''} } `;