From 3f26c7386314b3d2a61ad181b0bb4341aa7754f1 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 8 Jan 2026 10:34:05 +0400 Subject: [PATCH] fix: linebreaks in equations --- assets/style-course.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/assets/style-course.css b/assets/style-course.css index 87c67ab..846f5e4 100644 --- a/assets/style-course.css +++ b/assets/style-course.css @@ -416,3 +416,18 @@ span.formula { .answers button:nth-child(4):before { content: "D:"; } + +/* Enable Line Breaks in Equations ... */ +.course .katex-display > .katex { + white-space: normal +} + +/* Add space between broken lines: */ +.course .katex-display .base { + margin: 0.5em 0em +} + +/* Compensate by reducing space around display math */ +.course .katex-display { + margin: 1em 0em; +} \ No newline at end of file