Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrevent text with <sub></sub> tags in it from braking on a new line #447
Comments
This comment has been minimized.
This comment has been minimized.
Hi! I think you can use the pre tag outside the sub, it prevent the line jump... Spipu talk about it on the #229 bug. Regards, |
spipu
added
the
bug
label
Feb 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jacobdo2 commentedFeb 5, 2019
I have the following markup that I am trying to fit on an A4 page:
<p>Chemical corrosion is one of the ways to break down a substrate. C<sub>2</sub>SO<sub>4</sub> is one of the strongest suited for this purpose. </p>
The text be dynamic and sometimes the formula part will be at the end of the line - in which case it breaks on a new line where there are the
<sub>
tags, which is something I would like to prevent. I have tried wrapping it in an element of it's own and specify white-space: nowrap on it, but it does not seem to have any effect.Thank you for your help and thanks for this amazing library - it has been very handy and easy to use otherwise.