Skip to content

Commit 748f417

Browse files
committed
Disable ligatures
1 parent d8875ec commit 748f417

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/css/custom.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ html[data-theme="dark"] {
113113
}
114114

115115
body {
116-
font-feature-settings: "kern", "liga", "calt";
116+
font-feature-settings: "normal";
117117
-webkit-font-smoothing: antialiased;
118118
-moz-osx-font-smoothing: grayscale;
119119
background-color: #ffffff;
@@ -483,6 +483,16 @@ html[data-theme="dark"] .markdown strong {
483483
}
484484

485485
/* ===== CODE BLOCKS ===== */
486+
code,
487+
pre,
488+
.markdown code,
489+
.markdown pre code,
490+
code[class*="language-"],
491+
pre[class*="language-"] {
492+
font-variant-ligatures: none !important;
493+
font-feature-settings: "liga" 0, "calt" 0 !important;
494+
}
495+
486496
.markdown code {
487497
background-color: var(--ifm-code-background);
488498
color: var(--ifm-code-color);

0 commit comments

Comments
 (0)