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

refactor(model): add Code model for include_code tag #5633

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

D-Sketon
Copy link
Member

What does it do?

try to fix #5479 and #5486

ref #5479 (comment)

Since the current model doesn't satisfy include_code, I experimentally added the Code Model

Screenshots

Pull request tasks

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

Copy link

How to test

git clone -b fix/code https://github.com/D-Sketon/hexo.git
cd hexo
npm install
npm test

@D-Sketon D-Sketon linked an issue Feb 13, 2025 that may be closed by this pull request
5 tasks
@D-Sketon
Copy link
Member Author

I'm not sure the files in code_dir need to be written to the public folder

@coveralls
Copy link

coveralls commented Feb 15, 2025

Pull Request Test Coverage Report for Build 13342777776

Details

  • 100 of 100 (100.0%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 99.467%

Totals Coverage Status
Change from base Build 13299585829: 0.005%
Covered Lines: 9892
Relevant Lines: 9945

💛 - Coveralls

@D-Sketon D-Sketon marked this pull request as ready for review February 15, 2025 06:54
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.

include_code tag is broken in Hexo 7.2.0 .j2 file in code_dir causing rendering error
2 participants