jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
7.35k stars 2.54k forks source link

Discontinuity Between Obsidian Math Blocks and Plugin Rendering #1550

Open Gassandrid opened 3 weeks ago

Gassandrid commented 3 weeks ago

Describe the bug Math blocks in obsidian are declared by using double 4 on both sides($$math$$), but when rendered these blocks are considered 'inline' blocks, unless declared with newline characters in between ($$\nmath\n$$)

To Reproduce Create a obsidian markdown math block without newline characters between the $$ and the LaTeX

Expected behavior Be declared as a math block regardless of newline characters, like obsidian does

Screenshots and Source Expected Behavior(in obsdian)

Screenshot 2024-10-29 at 10 22 23 AM

Source in Obsidian

Screenshot 2024-10-29 at 10 24 13 AM

Current Behavior (outputted HTML)

Screenshot 2024-10-29 at 10 24 54 AM

Desktop (please complete the following information):

Issue persists regardless of versions that I can find