• When I use MathJax code – eg:
    <math><msub><mrow><mi>v</mi></mrow><mrow><mn>2</mn></mrow></msub></math>

    it automatically adds linebreaks (using <p></p>).
    I can’t find out how (and what) to change to keep the math formula in the text…

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yancad

    (@yancad)

    I found a solution using:

    <!-- wp:core/paragraph -->
    <!-- /wp:core/paragraph --></p>

    But that destroys paragraphs and linebreaks in the whole post (not only among the tags), so I have to use <p></p> and <br> for the rest of the post…

    Anyway – if you have some better solution – I welcome that.

    giannit

    (@giannit)

    Try adding the following to the file style.css in your site folder

    p:empty { display: none; }

    which hides the empty paragraphs <p></p>.
    If you want to hide just the <p></p> generated by mathjax you may use the css combinators.

    • This reply was modified 5 years ago by giannit.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘when using it adds linebreak’ is closed to new replies.