-
-
Notifications
You must be signed in to change notification settings - Fork 729
Description
Environment
- Operating System: Windows_NT
- Node Version: v22.13.0
- Nuxt Version: 3.15.2
- CLI Version: 3.20.0
- Nitro Version: 2.10.4
- Package Manager: [email protected]
- Builder: -
- User Config: future, extends, site, app, contentAssets, devtools, experimental, modules, mdc, content, fonts, icon, vite, compatibilityDate
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxtjs/[email protected], @nuxt/[email protected]
- Build Modules: -
Reproduction
Don't really have the time to make one right now, but am willing to.
Describe the bug
With Content V2, installing remark-math and rehype-katex allows for math blocks to be treated LaTeX expressions and rendered as such.
With Content V3, such blocks as forcefully rendered as ProseCode despite both remark-math and rehype-katex being present. (dollar sign delimited math blocks still render fine)
Additional context
Happens with Content V3 only.
Markdown math reference: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions
Math fence blocks:
**The Cauchy-Schwarz Inequality**
```math
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
```The Cauchy-Schwarz Inequality
Math dollar sign delimiters:
**The Cauchy-Schwarz Inequality**\
$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$The Cauchy-Schwarz Inequality