Skip to content

Build fails due to LaTeX syntax in headings (chapter12/3a.mdx) #1121

@chhaewxn

Description

@chhaewxn

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 🙇‍♀️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions