fix(editor): math equation not being rendered correctly on electron client (#12448)

fix #12300

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
  - Improved font rendering for math content on Windows by explicitly setting the font for math elements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
pengx17
2025-05-22 08:45:38 +00:00
parent 6def1c11d3
commit a63d11aa5d

View File

@@ -298,3 +298,11 @@ input {
[contenteditable]:focus-visible {
outline: none;
}
/* Math font may not being loaded in Electron */
math {
font-family:
'Cambria Math' /* windows */,
'STIX Two Math' /* mac */,
math;
}