-
Why is the KaTeX output included in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That definitely looks weird. But it's pretty hard to tell what's going on from the screenshot alone. Could you post a link to the website, or a minimum reproduction? |
Beta Was this translation helpful? Give feedback.
-
Ah, this is because of the float hack from the other thread. You'll want to add a h3 { clear: both } Or more robustly, you could add a "clearfix" to .katex-display:after {
content: "";
display: table;
clear: both;
} The latter seems to be failing in your context because you're wrapping every |
Beta Was this translation helpful? Give feedback.
Ah, this is because of the float hack from the other thread. You'll want to add a
clear
style to something afterward to end the floats. For example, you could add the following:Or more robustly, you could add a "clearfix" to
.katex-display
:The latter seems to be failing in your context because you're wrapping every
.katex-display
with a<div>
. It works if you can take them outside the<div>
somehow.