Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
CSS: try font-display: swap for .katex
Browse files Browse the repository at this point in the history
as suggested by edemaine in <KaTeX/KaTeX#2242>.
  • Loading branch information
yawnoc committed Jul 14, 2020
1 parent 84e4bbf commit 47e8b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions resources/styles/main.css
Expand Up @@ -140,6 +140,14 @@ pre {
/* Equations (KaTeX) */
/* ---------------------------------------------------------------- */

/*
Prevent invisible fonts while loading
*/

.katex {
font-display: swap;
}

/*
Overflow display equations with horizontal scrolling (overflow-*)
Prevent vertical clipping (margin-*, padding-*)
Expand Down
2 changes: 1 addition & 1 deletion resources/styles/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47e8b4c

Please sign in to comment.