-
Notifications
You must be signed in to change notification settings - Fork 17
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
wrongly parsed equation #52
Comments
just had the same with a fraction |
Could you try to pull the latest and see if the issue still persists? The equation looks fine for me. |
it still doesn't work |
Could be another plugin interferring, I just ran it the test case on the Github CI and the equation is displayed correctly. The following code should give the formula in an array: local parser = require("nabla.latex")
local exp = parser.parse_all([[y_{unten}=-\sqrt{r^2-x^2}]])
local ascii = require("nabla.ascii")
local g = ascii.to_ascii({exp}, 1)
local drawing = vim.split(tostring(g), "\n") -- table of lines with the formula in ASCII form If the array of lines is correct, the issue is when displaying into a popup. |
Have you got a clue on what was wrong? I cannot reproduce this so it's difficult for me to do anything. |
the output from the above code snippet is correct |
Something must be happening to the buffer, like a auto-formatter kicking in. nabla.nvim only takes those lines and put them in a float buffer using |
it seems like noice.nvim causes issues |
you have to pass |
that fixes this issue and also improves highlighting I just realized xD |
Thanks for the debug, I haven't installed noice so that's why I didn't see it but probably a lot have. I'll do that one change you mention. |
plugins like noice.nvim seem to interfer. Fix by @max397574 to add `stylize_markdown=false` fixes everything. Mentionned in #52
y_{unten}=-\sqrt{r^2-x^2}
looks like the top part of the sqrt is aligned to the left
The text was updated successfully, but these errors were encountered: