-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: nunjucks/code blocks in HTML comments were incorrectly converted #5616
base: master
Are you sure you want to change the base?
Conversation
How to testgit clone -b fix/comment https://github.com/D-Sketon/hexo.git
cd hexo
npm install
npm test |
Pull Request Test Coverage Report for Build 12931122833Details
💛 - Coveralls |
test/scripts/hexo/post.ts
Outdated
data.content.should.eql([ | ||
'<p>foo</p>', | ||
'<!--', | ||
`<hexoPostRenderCodeBlock>${highlighted}</hexoPostRenderCodeBlock>`, |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can solve it in backtick_code_block.ts
The negative lookbehind and negative lookahead |
What does it do?
fix #5433
Screenshots
Pull request tasks