Skip to content
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

Expect to be able to solve the problem of mathematical formula #8133

Closed
zoushucai opened this issue Jan 12, 2021 · 3 comments
Closed

Expect to be able to solve the problem of mathematical formula #8133

zoushucai opened this issue Jan 12, 2021 · 3 comments

Comments

@zoushucai
Copy link

zoushucai commented Jan 12, 2021

$ hugo version  0.8.0

I like the mathematical formula in pandoc mode, because it is more consistent with latex, but I look forward to the TOC in Goldmark

$$
\begin{aligned}y &= sin(x),\\
y &= cos(x), \\
y &= \dfrac{1}{1+e^{(-x)}},\\
y &= x^2 .
\end{aligned}
$$

eg:Rendering HTML with Katex in pandoc,there is no problem。 But the article lacks a table of contents。

Rendering HTML with Katex in goldmark,There is a table of contents, but there is something wrong with the mathematical formula。 as follow
2021011210DxDt18

Is there any other way to display both the mathematical formula (which is expected to be more consistent with latex's mathematical formula) and the table of contents?

@VincentTam
Copy link

VincentTam commented Feb 16, 2021

From the rendered output,
rendered ouput
it can be observed that goldmark had interpreted \\ (as Markdown) into \ before KaTeX did its work. I know that an HTML division <div> can show this interpretation. However, that doesn't work for inline <span>.

🔗 https://discourse.gohugo.io/t/use-goldmark-mathjax-extension/25721/20

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants