Skip to content

Conversation

@chhaewxn
Copy link
Contributor

@chhaewxn chhaewxn commented Oct 11, 2025

What does this PR do?

Fixes the build failure in Romanian translation caused by LaTeX expressions in Markdown headings.

Closes #1121

Why these changes?

The MDX processor converts LaTeX in headings to HTML with {@html} tags, which Svelte doesn't allow in component attribute values. This was causing build failures for all PRs, not just Romanian translation PRs.

Testing

  • Local build passes
  • Documentation renders correctly
  • Unicode characters (ε, β) display properly in headings
  • LaTeX in body text still renders correctly

Additional Context

This issue was discovered while working on Korean translation PR #1095. The build was failing due to this pre-existing issue in the Romanian files, affecting all PRs that trigger documentation builds.

@stevhliu May you please review this PR? 🤗

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@chhaewxn chhaewxn marked this pull request as ready for review October 11, 2025 18:41
Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! 🤗

@stevhliu stevhliu merged commit 8cf7839 into huggingface:main Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants