-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
[BUG] KaTeX fonts cannot be downloaded #285
Comments
Hm, that could pretty well be the case. I use NixOS to install org-roam-ui, and the font file lives at |
I have the same issue on Mac OS X. Files are present, but the extensions seem to be cut-off. Mac OS supports upto 255 characters for file name, and I verified that the path is 131 chars.
Not sure when this bug showed up (I auto-update my packages on a weekly basis), but I am currently using |
hmmm very strange. @skittishdev do you use any non-emacs package managing solution to install |
one other thing to check is that this might be a Melpa problem, could you try pulling org-roam-ui directly from the github repo? |
No, I use MELPA and use-package with package.el.
No change in behavior. Used straight.el
Some additional context
|
Describe the bug
The KaTeX fonts cannot be downloaded which causes the preview not to follow the KaTeX font commands correctly. It seems the font files, hosted in
_next/static/media
are cut short to 51 characters. Whereas the font at/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2
cannot be downloaded, there is a font at/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a
.To Reproduce
Preview a node which contains a KaTeX font command like
\mathscr{C}
or\mathbb{Z}
.Expected behavior
\mathscr{C}
creates a script C,\mathbb{Z}
creates a blackboard bold Z.Screenshots
Here is an example of what the preview looks like:
And this is how the
\mathscr{C}
and\mathscr{J}
should look:The following screenshot shows the font download errors in the browser’s console:
The directory listing for
_next/static/media
reveals that the file names are cut short (sometimes they contain no file extension, sometimes only part of it, e.g.,.wo
instead of.woff
):What browser were you using?
Firefox
The text was updated successfully, but these errors were encountered: