Skip to content

Math newline with default MathJax not working #4916

Closed Answered by cderv
retodomax asked this question in Q&A
Discussion options

You must be logged in to vote

R Markdown ecosystem use Mathjax 2 by default. Not yet upgrade to Mathjax 3
See discussion at rstudio/bookdown#1364 (comment)

Default Mathjax in Quarto will be 3 - which unfortunately has this limitation.

But as explained in the documentation, you can change to what you want:
https://quarto.org/docs/output-formats/html-basics.html#latex-equations

---
title: Math newline with Quarto
format: 
  html:
    html-math-method:
      method: mathjax
      url: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=TeX-MML-AM_CHTML"
---

# Equation

$$
x = 1 \\
y = 2
$$

You can use other math method too - see the doc

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cderv
Comment options

Answer selected by retodomax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants