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

fix(backtick_code): handle empty code block #5206

Merged
merged 1 commit into from May 20, 2023
Merged

fix(backtick_code): handle empty code block #5206

merged 1 commit into from May 20, 2023

Conversation

stevenjoezhang
Copy link
Member

What does it do?

Fix next-theme/hexo-theme-next#653

Screenshots

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

@github-actions
Copy link

How to test

git clone -b regex https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test

@stevenjoezhang stevenjoezhang merged commit c62909d into v7.0.0 May 20, 2023
5 of 30 checks passed
@stevenjoezhang stevenjoezhang deleted the regex branch May 20, 2023 16:45
@stevenjoezhang stevenjoezhang linked an issue May 23, 2023 that may be closed by this pull request
3 tasks
@yoshinorin yoshinorin added this to the 7.0.0 milestone Jun 2, 2023
@stevenjoezhang
Copy link
Member Author

This pull request may cause ReDoS, we need to investigate the reason or revert it.

Notice the timeout after upgrading to v7.0.0-rc2

截屏2023-07-28 09 27 09

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

Successfully merging this pull request may close these issues.

当空代码块时 渲染错误
3 participants