Skip to content

Commit 3d33f07

Browse files
authored
Merge pull request #124 from ian-r-rose/katex-svg-height
Specify height for KaTeX svg elements.
2 parents fed51e1 + 637c25e commit 3d33f07

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)