-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
The Romanian translation file chapters/ro/chapter12/3a.mdx
is causing build failures in all PRs due to LaTeX math expressions used inside Markdown headings.
Error
When building the documentation, the following error occurs:
[vite-plugin-svelte] /tmp/.../chapter12/3a/+page.svelte:151:35
{@html} tag cannot be in attribute value
ParseError: {@html} tag cannot be in attribute value
Root Cause
The MDX processor converts LaTeX expressions (e.g., $\beta$
, $\epsilon$
) in headings into HTML with {@html}
tags. However, Svelte does not allow {@html}
tags inside component attribute values, which causes the build to fail.
Problematic headings:
- Line 116:
#### Exemplu $\space \text{să presupunem}(\epsilon = 0.2)$
- Line 151:
#### Rolul Parametrului $\beta$
Impact
This issue affects all PRs because the CI builds documentation for all languages, not just the files being modified. This means any PR will fail the build checks due to this existing issue in the Romanian translation.
I discovered this issue while working on Korean translation PR #1095(#1095). The build was failing not due to my changes, but because of this pre-existing issue in the Romanian files.
I've created PR #1122 to fix this issue.
Changes:
- Replaced LaTeX expressions in headings with Unicode
- Build now passes !
Please review when you have time. Thank you 🙇♀️