-
Notifications
You must be signed in to change notification settings - Fork 56
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
how to auto-number and quote math formula? #116
Comments
I use align environments to get eq numbering. $$
\begin{align}
f'(x) &= \lim_{h \to 0} \frac{f(x+h)-f(x)}{h}
\end{align}
$$ Edit: I just tried using a label, but it renders with an error. It could be I haven't got amsmath to use it. |
Are you sure? It doesn't work for me. |
@carneeki When I disable the related function of |
So, how to quote math formula? |
Reference: KaTeX/KaTeX#2003 (comment) I added the following settings into my VSCode settings.json, and it seems rendering fine in the preview. "mdmath.katexoptions": {
"trust": "(context) => ['\\htmlId', '\\href'].includes(context.command)"
},
"mdmath.macros": {
"\\eqref": "\\href{###1}{(\\text{#1})}",
"\\ref": "\\href{###1}{\\text{#1}}",
"\\label": "\\htmlId{#1}{}"
}, |
Summary
I have a very basic question: how can we auto-number and quote math formulas through this extension? I find katex is supported to auto-number math formulas, but mdmath seems to don't support it. As for quoting math formulas, I cannot find how to do this, the following code don't work:
...
Expected behavior
...
Actual behavior
...
Steps to reproduce
Code example
Related links
Environment
The text was updated successfully, but these errors were encountered: