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

It doesn't work when '$...$' is nested inside '$$...$$' #46

Open
dreampasssser opened this issue Jan 18, 2023 · 4 comments
Open

It doesn't work when '$...$' is nested inside '$$...$$' #46

dreampasssser opened this issue Jan 18, 2023 · 4 comments

Comments

@dreampasssser
Copy link

I find this usage at KaTeX website

屏幕截图 2023-01-18 153459

When I use \colorbox{aqua}{$F=ma$} or \fcolorbox{red}{aqua}{$F=ma$} , it also works in vscode, but it looks bad in browser. like this

屏幕截图 2023-01-18 154801

@goessner
Copy link
Owner

goessner commented Jan 18, 2023

Hmm ... $\fcolorbox{blue}{red}{F=ma}$

works for me in VSCode
grafik

and in Browser
grafik

... no nesting of $'s supported ...

@dreampasssser
Copy link
Author

Emm... I know what you mean. But it is different between $ nested and not. It is just only text if you don't use $ , and it doesn't support these symbols \sum $\sum$ , \prod $\prod$ . For example, if I want to add a colored background to this formulae

屏幕截图 2023-01-18 174822

I will fail.

@goessner
Copy link
Owner

Hmm ... you are right. According to these and these comments inherent problems with $ environment become more clear.

I'm not sure, how to deal with that inside of markdown-it-texmath. It will take some time.

@dreampasssser
Copy link
Author

Well, that's all right.

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