-
Notifications
You must be signed in to change notification settings - Fork 18
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
Render inline math blocks as inline math #8
Comments
This one is difficult. Unlike fences we allow arbitrary delimiters. With latex style delimiters expressions like |
Mhm. I do not understand your example, how do you want the I have the following document:
And I expect it to render like this: but it gets rendered like this: |
This is how markdown-it-math is configured for the results above: |
The reason multiple backticks renders to an inline code-span is to allow placing a literal backtick inside the code-span without closing it f.x. |
Regarding the But as I'm writing this I kind of realize that perhaps this is a non-issue. If you are writing with weird parser you should configure the deliminators accordingly. So I think I'll implement this feature request. But note that we won't be able to make inline math behave like a code-span and emphasis at the same time. |
Maybe I miscommunicated: I just want to render
like
Sorry for the misunderstanding. I just added a PR #10 for this behaviour. |
And regarding the failed parsing of the syntax checking document. That failed because of an unimplemented feature request, namely single line block expressions. I wasn't sure whether we should allow block math to accept arguments, like a code fence does. It would be handy if you are writing in multiple languages to be able to pass arguments to the parser that this block should be rendered with a right-to-left directionality, and that block uses comma as a decimal mark, etc. But if we accept arguments to a block math than we sacrifice single line block math |
The acceptance of block math arguments could be a configurable option, right? |
Closing and opening #11 instead. |
If I have multiple
backticks
inline, it will be rendered asinline code
.The text was updated successfully, but these errors were encountered: