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

\vec{} and \sqrt{} do not render with the given KaTeX example code #123

Closed
StevenClontz opened this issue Nov 30, 2023 · 7 comments · Fixed by #140
Closed

\vec{} and \sqrt{} do not render with the given KaTeX example code #123

StevenClontz opened this issue Nov 30, 2023 · 7 comments · Fixed by #140
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@StevenClontz
Copy link

StevenClontz commented Nov 30, 2023

If you try to add a vector or square root at https://ssssota.github.io/svelte-exmarkdown/docs/08-math-formula using \vec or \sqrt, the math is not typeset with an arrow or square root symbol.

@ssssota
Copy link
Owner

ssssota commented Dec 1, 2023

Thank you for the report!

I have confirmed the bug!
SVG does not seem to be rendering.

@ssssota ssssota self-assigned this Dec 1, 2023
@ssssota ssssota added the bug Something isn't working label Dec 1, 2023
@StevenClontz
Copy link
Author

A possible hint: when our page https://scholarlattice.pi-base.org/markdown is loaded, you see the square root for a brief moment before it disappears.

@StevenClontz
Copy link
Author

I also added a vector to the sample text on that page to demonstrate that issue. Interestingly, the vector arrow does not flash on screen at all (and doesn't seem to be drawn as an SVG).

@ssssota
Copy link
Owner

ssssota commented Dec 3, 2023

I have checked this bug.

svelte-exmarkdown uses <svelte:element /> internally.
It seems that elements such as SVG path are not properly setting Namespace (http://www.w3.org/2000/svg).

@ssssota ssssota added the help wanted Extra attention is needed label Dec 10, 2023
@StevenClontz
Copy link
Author

Is there a solution here? sveltejs/svelte#7613

@ssssota
Copy link
Owner

ssssota commented Jan 11, 2024

Sorry for the delay in responding.
A fixed version has been released!
https://github.com/ssssota/svelte-exmarkdown/releases/tag/v3.0.3

@StevenClontz
Copy link
Author

Thanks so much. I can confirm fixes \sqrt rendering at https://scholarlattice.pi-base.org/markdown

I'm still dealing with \vec rendering not appearing on that page. However, \vec looks fine when I try it at https://ssssota.github.io/svelte-exmarkdown/docs/08-math-formula So I assume it's a bug in my CSS or similar, and not an issue here.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants