You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
KaTeX fonts are not rendered by Vite for slides in a sub-directory (not in Vite server.fs.allow[]).
> slidev export --format pdf SUBDIR/slides.md
●■▲
Slidev v0.48.9
theme slidev-theme-frankfurt
css engine unocss
entry SUBDIR/slides.md
■ rendering...The request url "./node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff2" is outside of Vite serving allow list.
- ./SUBDIR
- ./node_modules/@slidev/cli
- ./node_modules/@slidev/client
- ./node_modules/slidev-theme-frankfurt
- ./node_modules/vite/dist/client
Refer to docs https://vitejs.dev/config/server-options.html#server-fs-allow for configurations and more details.
The request url "./node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff2" is outside of Vite serving allow list.
The request url "./node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff" is outside of Vite serving allow list.
[...]
✓ exported to ./slides-export.pdf
Describe the bug
KaTeX fonts are not rendered by Vite for slides in a sub-directory (not in Vite
server.fs.allow[]
).To Reproduce
npm init [email protected]
$X = Y$
TeX formula somewhereslides.md
(and any sub-pages, snippets) in a sub-directorynpm run export -- SUBDIR/slides.md
Versions:
The text was updated successfully, but these errors were encountered: