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

Alignment issue #66

Open
svanimpe opened this issue Jan 14, 2024 · 2 comments
Open

Alignment issue #66

svanimpe opened this issue Jan 14, 2024 · 2 comments

Comments

@svanimpe
Copy link

I've noticed an alignment issue when using markdown-it-mathjax3 with VitePress:

Screenshot 2024-01-14 at 22 44 25

For comparison, here's the same document rendered by MathJax using Bookdown:

Screenshot 2024-01-14 at 22 44 13

This issue is also not consistent, as some equations do render fine inline.

@bill-ion
Copy link

I don't know how to reproduce this issue. It seems normal in my Vite project. Can you describe your environment or packages version in detail?
normal

@svanimpe
Copy link
Author

svanimpe commented Feb 2, 2024

I can reproduce this as follows:

In an empty directory:

npm add -D vitepress
npx vitepress init
# accept the defaults
npm add -D markdown-it-mathjax3

Then, in .vitepress/config.mts, add:

markdown: {
  math: true
}

In markdown-examples.md, add:

Text containing $a$ and $b$ variables.

This renders as follows:

Screenshot 2024-02-02 at 11 05 51

Versions in use:

"markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.0.0-rc.41"

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

2 participants