New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent text with <sub></sub> tags in it from braking on a new line #447

Open
jacobdo2 opened this Issue Feb 5, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@jacobdo2
Copy link

jacobdo2 commented Feb 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.

@LittleBigFox

This comment has been minimized.

Copy link
Contributor

LittleBigFox commented Feb 6, 2019

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,
LBF

@spipu 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