joeyuping / quick_latex_obsidian

MIT License
326 stars 21 forks source link

\left| \right| can't be rendered correctly in some cases. #82

Closed CMBill closed 1 year ago

CMBill commented 1 year ago

If I use $$\left| \right|$$ to write a fraction inside the absolute, the absolute value symbol won't be rendered.

Just like this: 图片

The desired equation should be like this:

If the equation inside the $$\left| \right|$$ is not a fraction, the rendering is correct, like this: 图片

If I use $$\lvert \rvert$$ or just a couple of |, the height of the bars between the fraction won't be the same as the fraction.

CMBill commented 1 year ago

The vertical bar in\bigg| won't be rendered either.

latex code: $$f'(z_{0}) = \frac{\mathrm{d}w}{\mathrm{d}z} \bigg|_{z = z_0}$$

The desire equation

$$f'(z{0}) = \frac{\mathrm{d}w}{\mathrm{d}z} \bigg|{z = z_0}$$

What I actually see in Obsidian 图片

joeyuping commented 1 year ago

Hi ! @CMBill

Thank you for bringing this up~

Sorry, however, I was not able to replicate the issue you mentioned. The vertical bars rendered correctly on my obsidian:

image

Also, I was wondering if the issue you are facing may be related to obsidian as a whole, and not so much the problem of the quick latex plugin? If the issue persist, you might like to post the problem to the obsidian team instead?

CMBill commented 1 year ago

Thanks to your reply!

I have checked my Obsidian vault. After resetting it the formulars are redered correctly.