Something should be added. I use the following code in cmd to tranform md to html: pandoc all.md -o all.html -C --mathjax --standalone ​ 在2021年7月22日星期四 UTC+8 上午11:59:51 写道: > I have done some searches, but I couldn’t find the perfect answer, so I > decided to open this post. As the document of mathjax > said, > automatic equation numbering can be used, but when I add > > window.MathJax = { tex: { tags: 'ams' } }; > > to front-matter in md, it never works. I know there are some filters, > e.g. pandoc-eqnos , but it > requires the following format > > \begin{align}{#eq:1} > \pi > \end{align} > eq. @eq:1 > > I wonder whether the following format could work > > \begin{align}\label{eq:1} > \pi > \end{align} > eq.\ref{eq:1} > > or > > \begin{equation}\label{eq:1} > \pi > \end{equation} > eq.\ref{eq:1} > > It will be more natural and vscode also can get the right display through > some extension, e.g. mathpix markdown. > ​ > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0ebbfdf4-a258-4e2e-898e-56f436d1fbd3n%40googlegroups.com.