logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.07k stars 1.76k forks source link

Katex in reference render poorly #11262

Closed AlexandreFoley closed 3 weeks ago

AlexandreFoley commented 3 weeks ago

Search first

What Happened?

A reference to a block that contain only latex is very poorly rendered: image

The result in the original block is fine image

Reproduce the Bug

The following is the markdown for a file that reproduce the problem. The empty line plays no role in reproduction, it's because the rendering issue leaks quite far outside the reference line.

- $ax^2+bx+c$
  id:: 6629a314-8947-4932-b3da-48d17743d841
-
-
-
- ((6629a314-8947-4932-b3da-48d17743d841))

Expected Behavior

No rendering issues

Screenshots

No response

Desktop or Mobile Platform Information

Windows 11, logseq app 0.10.8

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

andelf commented 3 weeks ago

I can't reproduce this on macOS. Could you disable any third-party themes?

AlexandreFoley commented 3 weeks ago

Right, after disabling the third party theme I was using (Flow Nord), the rendering issue is gone.