Skip to content

Commit 61d8ae2

Browse files
authored
Merge pull request #101 from USACE-RMC/enhancement/equation-no-ref
Fix inline equations rendering as block elements
2 parents bc1bf58 + 1ed17c4 commit 61d8ae2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/css/equation.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
margin-bottom: 25px;
2727
}
2828

29-
/* Equation container must be block with containment to prevent
30-
KaTeX content from inflating page width on narrow viewports */
31-
.equation-container {
29+
/* Block equation container must be block with containment to prevent
30+
KaTeX content from inflating page width on narrow viewports.
31+
Scoped to div to preserve inline flow for span-based inline equations. */
32+
div.equation-container {
3233
display: block;
3334
max-width: 100%;
3435
overflow: hidden;

0 commit comments

Comments
 (0)