-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Add option for standard latex math notation #762
Comments
This would only work in a major version release due to compatibility reasons, and I don't have any plans to implement this currently. Apart from inline math using the same delimiters as block math, what is the problem? |
Please reconsider addressing this issue because it is such a huge inconvenience and cases me so much waste of time. I am sure that I am not only person having this problem. |
So you mean you want to have a list item with span math and not block math? Easily possible:
renders as <ul>
<li>Some block math below</li>
<li>
\[x = 5\]
</li>
<li>Some span math below</li>
<li>\(x = 5\)</li>
</ul>
That can be viewed as a problem with pandoc... Jokes aside, you don't want to mix and match Markdown libraries. This may be an obvious difference but there are surely other, more subtle differences.
Only when you start a paragraph with a math expression, otherwise it is clear.
Valid point but how often do you need to do that? |
Thanks for suggestion this will help me a lot. On the other hand it makes the syntax even more obscure and unintuitive. I can not help my self from seeing it as "duck tape" solution.
I understand your point. But TeX math notation is standard this way for last 40 years and I do not know anything else witch would not obey this standard. If you look at it from the other side what benefits this current notation offers? I can not see anything positive about it and it is only bringing obscurity and incompatibility to this awesome project. PS: Thank you for your fast and informative responses. |
Yeah, it was implemented later to allow what appears to be math block to be a math span. However, it uses the standard escaping mechanism with backslashes, so not that bad.
This was implemented in February 2010; to be honest, I can't really recall 100% why I chose this syntax. I think the main reason was avoiding problems with single dollar usage in paragraph, like: The thing is it is not easily possible to change it now as it would break many existing documents. |
And have this as an option (something like I do not know if this is right place to ask, but I am trying to write a jekyll plugin and I am trying to figure out how to get list of all math expression in inlinde mode and list of math expressions in display mode. I could to was this:
But it returns list of some objects and it does not distinguish inline/display modes. Is there a way to achieve it ? Thank you for previous and potential future answers |
I have a policy of adding no (other) parser changing options to the main kramdown parser. The parser should work the same for everyone so that given a document, one can run kramdown on it and get valid output without knowing any other information. As for your question regarding getting data from kramdown:
|
Understandable. Thank you for your time. PS: Thank you for your suggestion. I will take a look at them |
Right now kramdown determinates is math block is in display or inline mode base on its surroundings. Which is weird and uncompatible with anything else.
Standard way to do it is:
$math$
- inline math block$$math$$
- display mode math blockWould you please consider adding some option for this standard latex notation ?
The text was updated successfully, but these errors were encountered: