New Button to Convert $formulas$ in Note #4792
Unanswered
lhx332251335
asked this question in
Show and tell
Replies: 4 comments 8 replies
-
@lhx332251335 I don't see "JS Frontend" note type. Where do you set it? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey, great work! In some notes it works for me, but in other it gives this error And in others, even though there are several formulas, it says there are no formulas I upload a sample file where it gives an error |
Beta Was this translation helpful? Give feedback.
5 replies
-
I’m really sorry to hear about the persistent issue. Unfortunately, as I
still cannot reproduce the error on my end, it’s difficult to pinpoint the
cause or provide specific script modifications. Based on the error code in
your screenshots, it seems the issue might stem from Trilium’s frontend API
not behaving as expected in your instance.
Here are a few suggestions that might help resolve or narrow down the
problem:
- It looks like you’re accessing Trilium through a reverse proxy. Could you
try connecting directly via the server’s IP? If it works without issues
this way, the problem might be related to your reverse proxy configuration.
Adjusting the settings there could resolve it.
- Backup your data files, then create a fresh container with a clean
Trilium instance to test the script. This will help determine if the issue
is specific to your current setup or environment.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
This script is designed to convert math formulas wrapped in single dollar signs (


$
) and double dollar signs ($$
) into HTML format within Trilium Notes. A new button is added to the center pane, which you can click to perform the conversion. Formulas wrapped in single dollar signs are treated as inline math, while those wrapped in double dollar signs are treated as block math. Please note that using this method for formula conversion cannot be undone using the Ctrl+Z shortcut.Usage Instructions
Create a Script Note:
Copy the Script:
Add Widget Attribute:
#widget
.Refresh Trilium:
Ctrl+Shift+R
to refresh Trilium Notes to apply the script.Beta Was this translation helpful? Give feedback.
All reactions