From 8437d9da7242543c4903ecd7e4687cb2679af867 Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Sun, 24 Mar 2024 23:43:36 +0100 Subject: [PATCH] fix(style): LaTex/KaTeX overflow (#1027) * LaTex/KaTeX overflow fix * prettier * Add !important modifier * Added overflow-x override * Refactor without !important * Refactor scss notation * Formatting scss --- quartz/styles/base.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 868dfdc..1af96f6 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -513,3 +513,15 @@ ol.overflow { padding-left: 1rem; } } + +.katex-display { + overflow-x: auto; + overflow-y: visible; + + & > .katex .katex-html { + .base, + .strut { + display: inline; + } + } +}