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

在部分帖子里出现 Markdown 渲染器出错 #8

Open
immccn123 opened this issue Nov 14, 2023 · 1 comment
Open

在部分帖子里出现 Markdown 渲染器出错 #8

immccn123 opened this issue Nov 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@immccn123
Copy link
Collaborator

          > 访问 https://lglg.top/727182 的时候服务器返回 500?

上游库有一堆锅导致的 情况比较复杂 尝试但降级不起作用

上游新版本存在内存泄漏 降到旧版本然后又是这个阴间错误 只能先等上游修了 抱歉

https://stackoverflow.com/questions/77138105/reactmarkdown-remarkgfm-everything-renders-as-expected-except-tables-typee

依赖的 remark-gfm 导致这个错误 升级 react-markdown 可以解决 但是 rehype-highlight 新版本存在内存泄漏 旧版本不与 react-markdown 新版本兼容 所以就卡在这里了

正在准备采取临时缓解措施

Originally posted by @immccn123 in #6 (comment)

@immccn123
Copy link
Collaborator Author

现在准备采取的临时措施是,升级 react-markdown 并禁用代码高亮。

可以恢复代码高亮有两种措施:

  1. rehype-highlight^6.0.0 兼容相关组件可以降级
  2. 若上游库修复客户端内存泄漏问题可以考虑升级

@immccn123 immccn123 changed the title 在部分帖子里出现 Markdown 解析器问题 在部分帖子里出现 Markdown 渲染器出错 Nov 14, 2023
@immccn123 immccn123 added the bug Something isn't working label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant