Skip to content
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

Checking the compiled HTML file, I found that there has <mspace linebreak="newline"></mspace> , but there is actually no line break #3286

Open
Beibeisheep opened this issue Sep 18, 2024 · 1 comment
Milestone

Comments

@Beibeisheep
Copy link

MathJax.version: 3.2.2
Configuration:
import 'mathjax/es5/tex-svg.js'

When I first changed from version 2 to 3, I found that the line breaks did not work. I thought it was an escape problem at first, I tried many methods but couldn't solve it. Finally I find it tryed to break the line, but for some reason didn't work.

Example:
original text:

$$
Hello\\world
$$

I want:

Hello
world

compiled HTML:

<mi>H</mi>
<mi>e</mi>
<mi>l</mi>
<mi>l</mi>
<mi>o</mi>
<mspace linebreak="newline"></mspace>
<mi>w</mi>
<mi>o</mi>
<mi>r</mi>
<mi>l</mi>
<mi>d</mi>

Actually, it shows

Helloworld

I would greatly appreciate any help or suggestions regarding this issue. Thank you!

@dpvc dpvc transferred this issue from mathjax/MathJax-docs Sep 19, 2024
@dpvc
Copy link
Member

dpvc commented Sep 19, 2024

This is a duplicate of #2312, #3230, and others.

Line-breaking isn't available in v3, but is in v4, now out in beta release.

@dpvc dpvc added this to the v4.0 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants