Skip to content

Commit 637c25e

Browse files
committed
Specify height for KaTeX svg elements.
1 parent fed51e1 commit 637c25e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/katex-extension/style/index.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@
44
|----------------------------------------------------------------------------*/
55

66
@import url('~katex/dist/katex.css');
7+
8+
/**
9+
* Note: the KaTeX CSS doesn't apply a height property
10+
* to its SVG objects, so it can be overridden by low-
11+
* specificity rules elsewhere on the page. This
12+
* is a workaround for that behavior.
13+
*/
14+
.katex svg {
15+
height: inherit;
16+
}

0 commit comments

Comments
 (0)