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

Add mathematical formula rendering such as Katex #11

Closed
hprogq opened this issue Apr 24, 2022 · 2 comments
Closed

Add mathematical formula rendering such as Katex #11

hprogq opened this issue Apr 24, 2022 · 2 comments

Comments

@hprogq
Copy link

hprogq commented Apr 24, 2022

Hey there!
I found that the program cannot render mathematical formulas in the process of using Urara, could you please help me to provide a solution?

写题解发现没法加数学公式,现在直接以rehype插件的形式加到mdsvex的配置中好像不会生效,可能是我对svelte还不够了解,应该怎么做呐
我之前看到的解决方案是可以在渲染静态文件的时候将其转为SVG格式的图片,这样能解决单页面应用需要主动重载渲染的问题,有好的解决方案吗?
感谢!

@kwaa
Copy link
Member

kwaa commented Apr 24, 2022

I think you can follow this issue (pngwn/MDsveX#302) and try using rehype-katex-svelte.

我認為你可以關注此 issue 並嘗試使用 rehype-katex-svelte。 (連接同上)

@hprogq
Copy link
Author

hprogq commented Apr 24, 2022

Appreciate a lot!

好的,感谢!

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

No branches or pull requests

2 participants