You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 $f(x)$ and $$f(x)$$ are rendered into block equation html codes as below:
I think the problem is that the options to the rehypeMathjax plugin seems to be not working. Because no matter what delimiters I set (e.g., inline math: [["#," "#"]]), the behavior does not change.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
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
$f(x)$
and$$f(x)$$
are rendered into block equation html codes as below:I think the problem is that the options to the rehypeMathjax plugin seems to be not working. Because no matter what delimiters I set (e.g., inline math: [["#," "#"]]), the behavior does not change.
My next.config.mjs:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions