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
Is it possible to config $ as delimiters only when it is not followed immediately by a word of digits? #1202
Comments
It would be easy to tweak the autorender contrib plug in to do this, but I don't think most users would want it to work this way. Personally I'd rather have The simplest thing would be to modify the delimiters supplied to autorender to use something other than a single |
Pandoc's |
@ronkok I brought up the issue after I read Pandoc's tex_math_dollars. |
@edemaine I read the code of the autorender contrib plug. The point I brought up the issue is that it is obscure for users to input a dollar sign when using Using something other than a single |
Related: #437 |
@ylemkimon That is exactly what I ask for.
The idea behind is that But it does not work. For example
The inline math on the first line is not recognized as math, because the right delimiter which is followed by a I think it may be a bug, for the right delimiter should be paired first before it be recognized as a left one. |
@jiewuza I would try:
and see if that helps. |
@kevinbarabash
|
I see. Yeah, that's a tough problem. I don't think there's a clean way to solve the problem by simply defining different delimiters. You'll probably want to write your auto-render code. I would probably just use |
I'm going to close this since it's going to be very difficult to implement something that handles the different behaviors people want. Also, there is a workaround by using different delimiters. |
Usually we use $ as dollar sign as $20, it is followed immediately by digits.$2x^3$ , .... $30 is enough"
So if we can config both the left and the right $ as delimiter only when it is not followed immediately by a word of digits, we are freely to mix Katex math with dollar sign in most cases,
i.e. "Here is the math
The text was updated successfully, but these errors were encountered: