Skip to content

Render inline math on the Data Challenge page - #31

Merged
AmberLee2427 merged 2 commits into
mainfrom
copilot/fix-x-axis-rendering
Jul 14, 2026
Merged

Render inline math on the Data Challenge page#31
AmberLee2427 merged 2 commits into
mainfrom
copilot/fix-x-axis-rendering

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Inline LaTeX expressions such as $x$ and $\alpha$ were displayed as raw text on the Data Challenge Data page.

  • MathJax: Add MathJax 3 with $...$ and \(...\) inline delimiters.
  • Scope: Apply the configuration only to the affected page.
<script>
window.MathJax = {
  tex: { inlineMath: [["$", "$"], ["\\(", "\\)"]] }
};
</script>

Copilot AI changed the title [WIP] Fix x-axis rendering issue on Data Challenge Data Page Render inline math on the Data Challenge page Jul 14, 2026
Copilot AI requested a review from AmberLee2427 July 14, 2026 04:19
@AmberLee2427
AmberLee2427 marked this pull request as ready for review July 14, 2026 04:20
Copilot AI review requested due to automatic review settings July 14, 2026 04:20
@AmberLee2427
AmberLee2427 merged commit 2fa6fea into main Jul 14, 2026
@AmberLee2427
AmberLee2427 deleted the copilot/fix-x-axis-rendering branch July 14, 2026 04:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds page-scoped MathJax configuration to ensure inline LaTeX (e.g., $x$, $\alpha$) renders correctly on the RMDC26 Data page without affecting other pages.

Changes:

  • Injects a window.MathJax configuration enabling $...$ and \(...\) inline delimiters.
  • Loads MathJax 3 (tex-chtml) from a CDN on the Data Challenge Data page only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
};
</script>
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
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.

$x$-axis not rendering correctly on Data Challenge Data Page

3 participants