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 解析器 #139

Open
renbaoshuo opened this issue Jul 3, 2024 · 0 comments
Open

更换 Markdown 解析器 #139

renbaoshuo opened this issue Jul 3, 2024 · 0 comments
Assignees

Comments

@renbaoshuo
Copy link
Member

背景

目前 UOJ 社区版的 Markdown 解析器是用 PHPv8 桥接的 marked.js,这导致了以下问题:

  • 构建镜像时的额外步骤(配置 PHPv8 相关环境)
  • 代码的可维护性下降
  • 报错调试的难度更高
  • 二次开发更麻烦

方案

切换到 Parsedown

优势:

  • 采用纯 PHP 方案,无需折腾 PHPv8 相关环境,便于维护
  • 更强的可扩展性,便于后期二次开发

PS: 如果反馈良好可以考虑再上游到官网版?

参考

@renbaoshuo renbaoshuo self-assigned this Jul 3, 2024
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

1 participant