RyotaUshio / obsidian-latex-theorem-equation-referencer

A powerful indexing & referencing system for theorems & equations in your Obsidian vault.
https://ryotaushio.github.io/obsidian-latex-theorem-equation-referencer/
MIT License
177 stars 8 forks source link

[BUG] Incorrect rendering of symbols in callouts & blockquotes #240

Closed howwhenz closed 2 months ago

howwhenz commented 2 months ago

Hello,

Live preview of the multi-line math block in callouts & blockquotes rendered incorrectly if the line starts with certain symbols (+, -, *, /, =, ', etc):

image

image

It seems like that:

> $$
> [Certain symbols][The rest]
> $$

would be rendered as:

[Certain symbols]>[Certain symbols][The rest]

With another plugin by the same author Better Math in Callouts & Blockquotes alone can render them correctly, but if with the current plugin installed at the same time, this issue shows up.

Environment:

LynetteCullens commented 2 months ago

math block in callouts & blockquotes rendered incorrectly if the line starts with certai With Render Equation Enabled Live Preview with REnder Links

It renders correctly in Live Preview when outside of the callout.

Disable Render Equation

Live Preview without REnder Links In My Vault image image

I have the setting turned off, but I can't determine what plugin is rendering the math for me instead.

howwhenz commented 2 months ago

Thank you very much, it works in my vault. However, I turned off the option "Render equations inside callouts & add multi-line equation support to blockquotes" instead of "Render equation."

image

I think the "Better Math in Callouts & Blockquotes" plugin takes over live preview rendering if this option turned off.