Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid dollar symbol inline math #194

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Conversation

rikhuijzer
Copy link
Owner

@rikhuijzer rikhuijzer commented Jun 12, 2024

Inline math via dollar symbols can conflict with using dollar symbols for representing dollars. Fixing this by escaping dollars is not an option since it is hard to run KaTeX and unescape dollars in Javascript (see also #193). So instead of fixing the dollars for representing currency, this patch fixes the dollar for representing inline math by converting the dollars to \( and \). This is also how Franklin.jl handles it. In other words, Franklin.jl also converts dollar symbols for inline math to \( and \).

Tasks

  • Add test to verify that Pluto.jl returns <span class="tex">$x$</span> for $x$.
  • Verify that Documenter.jl also interprets \( and \) as inline math.

@rikhuijzer rikhuijzer enabled auto-merge (squash) June 12, 2024 07:25
@rikhuijzer rikhuijzer merged commit 7c998c9 into main Jun 12, 2024
3 checks passed
@rikhuijzer rikhuijzer deleted the rh/avoid-dollar-inline-math branch June 12, 2024 07:30
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.

None yet

1 participant