-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
A small bug of KaTeX plugin #2500
Comments
Thanks @yuzijie I'm investigating. One issue is that the demo on the KaTeX site actually wraps the text you enter into the string |
Hi @yuzijie what browser are you using? After a bit more investigation, I think this might be a Chrome bug; in my tests, TiddlyWiki renders correctly in Firefox: It's not clear why the KaTeX demo site isn't encountering the same bug, I'll continue investigations. |
Hi @Jermolene, It is indeed a Webkit bug! I never use Firefox, so I assumed that all browsers should have the same problem. However, I did some investigation today, and found that this bug is related to webkit browsers only, except for Safari, which doesn’t apply the correct length of the arrow. Then accidentally, I found this weird thing: It proves my point. |
I think the best solution for this is to add |
Thank you @yuzijie for your brilliant detective work, the fix works for me. |
Hi, I am having this problem with my TiddlyWiki. Vector arrows do not display, whether I open it in Chrome, Edge, Internet Explorer or Firefox. I am using the latest version, 5.1.17, of both TiddlyWiki and the KaTeX plugin. I tried to switch from "text-rendering: optimizeLegibility;" to "text-rendering: auto;" within all the KaTeX parts of the .html file, but it didn't help. @yuzijie : What exact part of the .html file is the .katex class you mention, in which I should add "text-rendering: auto;"? Is nobody else still experiencing this? Sincerely, |
Hi, still experiencing this (I'm on firefox). I created a new tiddler .katex {
text-rendering: auto;
} and, although it seems that the CSS is being picked up (checked e.g. by changing katex background to red), I still cannot see any arrows over |
@bluehood ... The problem seems to be from SVG max-width definition from TW.
This does the trick for me in FF. .. The |
I was testing with: https://tiddlywiki.com/plugins/tiddlywiki/katex/ So if you did include other plugins, which include CSS settings it may be different results! |
@Jermolene ... IMO this bug should be reopened an fixed. |
@pmario thank you so much, |
Hi, I have found a small bug of KaTeX plugin which is the vector symbol cannot be displayed.
From KaTeX official website
![katex](https://cloud.githubusercontent.com/assets/2365206/16913661/6038505a-4cec-11e6-9275-cddc58d64b01.png)
From Tiddlywiki KaTeX demo page
![tiddlywiki](https://cloud.githubusercontent.com/assets/2365206/16913664/645990f4-4cec-11e6-9883-8af4c84f5da5.png)
The text was updated successfully, but these errors were encountered: