shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.44k stars 172 forks source link

[BUG] Inline math in image name has rendering problem using pandoc #1846

Open joezhouchenye opened 10 months ago

joezhouchenye commented 10 months ago
![$N_d$ vs $f_l$. The pulsar's DM is assumed to be 750 pc cm$^{-3}$ with a Nyquist complex-sampling bandwidth of 16 MHz.](assets/Multi-Segment%20Coherent%20Dedispersion%20Method%20Based%20on%20Overlap-Save/2.png){#fig:dispersion-smearing-time width=75%}

I am using pandoc with pandoc-crossref filter.

After updated to the newest version, the above has rendering issue.

image

It seems that the "{}" bracket in the inline math $^{-3}$ is causing the problem.

joezhouchenye commented 10 months ago

The newly added syntax seems causing this problem. How to disable it for pandoc parser?

shd101wyy commented 10 months ago

Will fix it this week.