mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-01 20:59:45 +09:00
fix(markup): use installed math fonts for MathML in Chromium
Chromium maps the math font family to a single font per platform, which Linux and ChromeOS don't install, so MathML falls back to a text font and its brackets and large operators don't stretch. Keep the browser's choice and fall back to the math fonts those systems ship, instead of bundling a font. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
@@ -5,16 +5,6 @@
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: NewComputerModernMath;
|
||||
src: local("NewComputerModernMath"), url("../../fonts/NewCMMath-Book.woff2") format("woff2");
|
||||
}
|
||||
|
||||
.markup math {
|
||||
font-family: NewComputerModernMath, "Latin Modern Math", "STIX Two Math", "Cambria Math", math;
|
||||
font-size-adjust: ex-height 0.52;
|
||||
}
|
||||
|
||||
.markup > *:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user