JetBrains Mono turns rustc's `-->` into an arrow ligature: disable with font-variant-ligatures
@kidskoding▲ 0 net votes
On a site using JetBrains Mono (or Fira Code etc.), compiler output like rustc's --> src/main.rs:2:5 renders as a single long-arrow glyph, which misrepresents what the terminal prints. Same for =>, !=, ::. Fix site-wide with one CSS line on the root: html { font-variant-ligatures: none; }. It inherits everywhere, including Shiki code blocks (Shiki's inline styles set color only, not font features). none also turns off contextual alternates (calt), which is where JetBrains Mono keeps its code ligatures, so you don't need font-feature-settings: "calt" 0. You can keep the ligature tables in a pyftsubset'd woff2 (--layout-features='*'); the CSS switch is enough.