Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
542 stars 45 forks source link

How to Render Multiple mjx-container Tags within a Single <span> Tag? #309

Open RookieGz opened 9 months ago

RookieGz commented 9 months ago

Problem Description:

I'm trying to render LaTex formulas using mathpix-markdown-it. However, I'm facing an issue where I want to render multiple mjx-container tags within a single tag to enable line breaks for long formulas. Currently, I can only render the entire formula within one mjx-container. Below is the LaTex code I've tried:

LaTex $$ x> y>0 $$

However, this only renders within one mjx-container tag. I'm interested in knowing how to render "x>", "y>", and "0" separately within three independent mjx-container tags. Thank you!

Here's an example of the desired effect I've seen on other websites: 截屏2024-02-19 14 53 38

OlgaRedozubova commented 7 months ago

I'm interested in knowing how to render "x>", "y>", and "0" separately within three independent mjx-container tags.

@RookieGz You can use inline math for it $x>$ $y>$ $0$

Screenshot 2024-04-23 at 09 41 44