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

(Bug report) Math not showing in shared page #4713

Closed
Zeleznyj opened this issue Mar 26, 2024 · 3 comments
Closed

(Bug report) Math not showing in shared page #4713

Zeleznyj opened this issue Mar 26, 2024 · 3 comments

Comments

@Zeleznyj
Copy link

Trilium Version

0.63.3

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Local running on Ubuntu 22.04 using flatpak, server running on Debian 12 using Docker

Description

Page containing math show correctly on the server itself, but when sharing the page, the math is not rendered and instead just shown as latex commands.

The issue seems to be in loading the katex related assets, as shown in the attached log file.

The server is running under domain/trilium and I think the issue is related to that. The path for katex assets starts with ../../assets, which translates to domain/assets... whereas the correct path is domain/trilium/assets.

Error logs

console-export-2024-3-26_11-27-44.txt

@zadam
Copy link
Owner

zadam commented Mar 27, 2024

Do you have a non-docker installation? Perhaps you didn't run npm install after upgrade?

Math seems to work fine for me:

@Zeleznyj
Copy link
Author

I'm using docker. You can see the shared page where the math doesn't work here. With the katex.min.js for example the problem is that it's loading the asset from https://zeleznyj.fzu.cz/assets/v0.63.3/node_modules/katex/dist/katex.min.js, but the correct path is https://zeleznyj.fzu.cz/trilium/assets/v0.63.3/node_modules/katex/dist/katex.min.js.

@zadam
Copy link
Owner

zadam commented Mar 28, 2024

I see, I didn't notice the path segment "trilium". Should be fixed in the next patch release.

@zadam zadam closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants