Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: KaTeX/KaTeX
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.24
Choose a base ref
...
head repository: KaTeX/KaTeX
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.25
Choose a head ref
  • 2 commits
  • 15 files changed
  • 3 contributors

Commits on Oct 13, 2025

  1. feat(css): provide katex-swap.css that uses font-display: swap (#…

    …3940)
    
    * Default to font-display: swap; closes #2242
    
    Google fonts seem to default to swap, and mixing them with katex makes it so that katex is invisible briefly on page load, unlike google fonts which make use of fallbacks while loading. This would unify their behavior.
    
    Ideally there'd be an option for this, and a ?display=swap in the cdn url (like google fonts: https://developers.google.com/fonts/docs/css2#use_font-display), but I don't know if jsdelivr supports that!
    
    * Restore `block` default, provide `katex-swap.css` for `swap`
    
    * Document katex-swap.css
    
    * Fix dev mode
    
    * Add missing katex-swap.scss
    
    * Build scss separate from js, fix version
    
    Use `webpack-remove-empty-scripts` instead of `splitChunks`
    
    * lint fix
    
    ---------
    
    Co-authored-by: Erik Demaine <edemaine@mit.edu>
    FreyaHolmer and edemaine authored Oct 13, 2025
    Configuration menu
    Copy the full SHA
    b3f9ce6 View commit details
    Browse the repository at this point in the history
  2. chore(release): 0.16.25 [ci skip]

    ## [0.16.25](v0.16.24...v0.16.25) (2025-10-13)
    
    ### Features
    
    * **css:** provide `katex-swap.css` that uses `font-display: swap` ([#3940](#3940)) ([b3f9ce6](b3f9ce6)), closes [#2242](#2242)
    KaTeX-bot committed Oct 13, 2025
    Configuration menu
    Copy the full SHA
    d2f1084 View commit details
    Browse the repository at this point in the history
Loading