-
Notifications
You must be signed in to change notification settings - Fork 327
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
Specification of math block and math span #955
Comments
Math areaA math area is a math block (leaf block), or math span (inline). Conventionally, a math block is known as a display math area since it is automatically rendered in display style, and a math span is an inline math area since it is in text style. Both are necessary. You would like a dedicated block structure (math block) for the following reasons:
You would like an inline structure (math span) for the following reasons:
Big problemsGeneral
Math block
Math span
|
Sorry to interrupt. But VS Code appears to have an ambitious plan for version 1.58 (microsoft/vscode#124783), which could become a challenge. At commit Comparing with the original I'm scared and not sure why it's happening. Any ideas? @yzhang-gh |
Well, I don't think it is a bad thing as then it (basic math support) will be maintained by VS Code instead of us. But I don't think they would go that further to support
I think it is a bug and we can report it to VS Code. The only downside is now if we would like to set up a spec (of Markdown math) we need to discuss with VS Code, which becomes less convenient. |
Right. Exactly what I'd like to mean by "challenge" and "scared". We've classified many cases as error-prone and dangerous. However, VS Code is making an effort to support them, according to commit history.
What about inviting Bierner to this thread? Then we might learn why they added that syntax. |
I prefer to collect some specific questions and open an issue in the VS Code repo as there may be more users who would like to discuss.
According to my understanding, a math block is a leaf block, which is similar to a fenced code block (
Do you mean is space allowed before or after
I guess not, at least for inline math
It looks like
I don't think so. Is there any feature request?
To me it is the same question of "precedence". And to avoid unexpected interruption, the question "start/end condition" is important (the pandoc-style seems to be good enough?). I think we need to raise the No.2~4 questions. |
Background
Math is a popular extension of Markdown. We have been supporting (rendering) it via
markdown-it-katex
since version 1.2.0 (2018-04-20).We now roughly follow pandoc-style. As corner cases arise, however, we need to reconsider the details and get a spec.
Our implementation is not compatible with VS Code's built-in
vscode.markdown-math
extension in edge cases.Summary
The conclusion of this thread will be here.
Key references
The text was updated successfully, but these errors were encountered: