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

Can't use $ without it being mistaken for latex. #38

Open
yangchristina opened this issue Jun 14, 2023 · 2 comments · May be fixed by #50
Open

Can't use $ without it being mistaken for latex. #38

yangchristina opened this issue Jun 14, 2023 · 2 comments · May be fixed by #50

Comments

@yangchristina
Copy link
Collaborator

yangchristina commented Jun 14, 2023

Cannot use html symbol for $ either, as it gets converted to $, and any backslashes before $ gets removed.

Screenshot 2023-06-14 at 2 25 52 PM

@firasm
Copy link
Contributor

firasm commented Jun 14, 2023

These attempts also didn't work:

  • \$
  • \\$
  • $

@Bluesy1
Copy link
Collaborator

Bluesy1 commented Jun 28, 2023

If you add the class mathjax_ignore ignore to an element (like a div, or even <markdown></markdown>), latex won't get parsed inside that block, so dollar signs won't cause equations to form.

Example

<div class="mathjax_ignore">
  Mary has $5 to spend. If each apple costs $2 dollars and a banana costs $1 dollar, then how many
  pieces of fruit can Mary get?
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants