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

break the math render in markdown preview #4

Open
heartacker opened this issue Feb 4, 2022 · 4 comments
Open

break the math render in markdown preview #4

heartacker opened this issue Feb 4, 2022 · 4 comments

Comments

@heartacker
Copy link

Issue Type: Bug

扩展二等分 排查

Extension version: 1.5.0
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.22543
Restricted Mode: No

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 23.68GB (6.19GB free)
Process Argv --crash-reporter-id b5c00893-d67b-4c7c-a4db-cb27125d5319
Screen Reader no
VM 40%
@heartacker
Copy link
Author

microsoft/vscode#142171

@heartacker
Copy link
Author

image
禁用此插件后,显示正常

@Lemmingh
Copy link

Lemmingh commented Feb 4, 2022

问题出在:

"markdown-it-katex": "^2.0.3",

年久失修的 markdown-it-katex 引入了 KaTeX 0.6.0,与现代的 KaTeX 不兼容,发生冲突。


对于这种情况,最好自己重新实现一遍。

鉴于 waylonflinn/markdown-it-katex 以 MIT License 授权,复制点代码过来也无妨,但要注意几个比较坑的地方。

以下资料可能会有帮助:

@jks-liu
Copy link
Owner

jks-liu commented Feb 5, 2022

谢谢你的提交。

鉴于预览功能已经移除(985b32a ),后续会删除 KaTeX 相关依赖。

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

3 participants