Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline math incorrectly treated as display math in kramdown delimiter mode #120

Open
yunhao-qian opened this issue Dec 12, 2021 · 0 comments

Comments

@yunhao-qian
Copy link

Summary

When the delimiters setting is set to kramdown, an inline formula would be incorrectly treated as a display formula if it appears at the beginning of an HTML element. Any text that follows the problematic formula is discarded.

Expected behaviour

image

Actual behaviour

image

Steps to reproduce

  1. Install the "Markdown+Math" extension;
  2. The issue appears no matter whether the built-in LaTeX support of VSCode is enabled or not;
  3. Set "mdmath.delimiters": "kramdown";
  4. Issue can be reproduced with the code example below.

Code example

$$E = m c^2$$ Einstein

Listing example:

* $$p = m v$$ momentum
* $$F = m a$$ force

Related links

Environment

    Operating system: Ubuntu 20.04
    VSCode version: 1.63.0
    Markdown+Math version: 2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant