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

请增加katex支持 #95

Closed
ossphil opened this issue Nov 9, 2017 · 2 comments · Fixed by #138
Closed

请增加katex支持 #95

ossphil opened this issue Nov 9, 2017 · 2 comments · Fixed by #138
Labels

Comments

@ossphil
Copy link

ossphil commented Nov 9, 2017

希望能增加使用katex解析latex公式的功能。

@shery shery added the feature label Nov 9, 2017
w568w added a commit to w568w/inkstone that referenced this issue Jan 31, 2023
@w568w
Copy link
Contributor

w568w commented Jan 31, 2023

某种意义上来说是各个主题可以自行实现的,不过得益于 Markdown 渲染库,最新版本支持将 $ ... $$$ ... $$ 解析为含有 MathJax 对应类名的 HTML 元素,只需要在主题的头部自行添加 MathJax 支持库即可,见 w568w@d25798d

$$\LaTeX$$

$$ \int_{-\infty}^\infty g(x) dx = \frac{1}{2\pi i} \oint_{\gamma} \frac{f(z)}{z-g(x)} dz $$

@imeoer
Copy link
Member

imeoer commented Jan 31, 2023

@w568w 赞!这个也把 PR 提出来吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants