Skip to content

Conversation

@aidanfnv
Copy link
Contributor

@aidanfnv aidanfnv commented Jun 2, 2025

Fixes #107

This change adds the "dollarmath" MyST extension to the Sphinx config used by the ReadTheDocs site, so that markdown enclosed in dollar signs, e.g.
image
gets properly rendered as LaTeX expressions:
image

It also adds a preprocessing step that replaces all of the $$ delimiters around inline expressions with $, to make them compatible with dollarmath without breaking existing compatibility with Jekyll/MathJax (see shader-slang/slang#6294).
With $$ around inline expressions:
image
With those $$ replaced with $:
image

Copy link
Contributor

@jkwak-work jkwak-work left a comment

Choose a reason for hiding this comment

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

Looks good to me

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.

Latex equations on readthedocs is broken.

2 participants