Replies: 1 comment 1 reply
-
Hi! See the tools you are using, and read there readmes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related to vercel/next.js#74625
I'm using nextjs 15 + mdx + rehypeMathjax to write math-heavy blog articles.
However, the inline equations are rendered as block ones no matter how I config the inline delimiters in mathjax.
Both
![image](https://private-user-images.githubusercontent.com/128007376/400987109-1bbc4418-ae52-44b1-8e7c-d10a5f3a2212.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAxMzc0MzcsIm5iZiI6MTc0MDEzNzEzNywicGF0aCI6Ii8xMjgwMDczNzYvNDAwOTg3MTA5LTFiYmM0NDE4LWFlNTItNDRiMS04ZTdjLWQxMGE1ZjNhMjIxMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIyMVQxMTI1MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03OTcyZmFjYmJjODRjZGE2OTgyNzgyNTViNjg3MmQ3Y2IyY2Q0YjUwYWY5ZWYyMzJlZWJmY2M0NGU0NTA4MDI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.fQIta2KopAoFBG_2qFGscUYL2qrPvZdfUdDR-0RtKkc)
$f(x)$
and$$f(x)$$
are rendered into block equation html codes as below:The behavior of the options to the rehype-mathjax plugn is weird.
tag="ams"
.inlineMath: [["$", "$"]],
, I can still render block equations with$f(x)$
, which is not expected. Because the delimiter "$" is disabled by default in mathjax, according to the official document.inlineMath: [["$", "$"]],
(e,g.inlineMath: [["@", "@"]],
), I can ONLY get correct render with $.My next.config.mjs:
Beta Was this translation helpful? Give feedback.
All reactions