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

Issues for TeX expressions using percentages (%) #3

Closed
Masstronaut opened this issue May 3, 2022 · 1 comment
Closed

Issues for TeX expressions using percentages (%) #3

Masstronaut opened this issue May 3, 2022 · 1 comment

Comments

@Masstronaut
Copy link

Just checked out latest per our discussion in the MDsveX issue. It seems to have issues with rendering the % character. for example:

$5\%$
$$
5\%
$$

Produces the error

LaTeX-incompatible input and strict mode is set to 'warn': % comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $) [commentAtEnd]

And fails to render the % character despite it being escaped which AFAIK (I'm not TeX expert) is the correct way to do it. I see the following rendered output:
image

This output makes sense if it's treating the % characters as a comment, rather than treating the escaped \% as a percentage character. Given the errors, I think that scenario is likely.

@Masstronaut
Copy link
Author

I've investigated this further and it seems the issue is actually occurring upstream in another step of my processing pipeline - discussion here. I'll go ahead and close this issue as it doesn't appear to be rooted in rehype-katex-svelte

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

No branches or pull requests

1 participant