hexo icon indicating copy to clipboard operation
hexo copied to clipboard

fix: pass the language option for codeblock tag

Open xihale opened this issue 2 years ago • 3 comments

What does it do?

I will pass the language option when I use either of highlight.js or prism.js for codeblock tag!

Pull request tasks

  • [x] Add test cases for the changes.
  • [x] Passed the CI test.

xihale avatar Jul 29 '23 14:07 xihale

How to test

git clone -b master https://github.com/xihale/hexo.git
cd hexo
npm install
npm test

github-actions[bot] avatar Jul 29 '23 14:07 github-actions[bot]

Would you mind adding unit test cases toward your changes?

but, I don't know what unit test I should add, can you help me? Just tell me where I can find how to add unit test for hexo changes! Thanks!

Anyway, I will try it!

xihale avatar Jul 30 '23 11:07 xihale

I added a unit test to test my changes and find a inconspicuous bug then fixed it.

xihale avatar Jul 30 '23 12:07 xihale

How to test

git clone -b master https://github.com/xihale/hexo.git
cd hexo
npm install
npm test

github-actions[bot] avatar Mar 02 '24 12:03 github-actions[bot]