hexo
hexo copied to clipboard
fix: pass the language option for codeblock tag
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.
How to test
git clone -b master https://github.com/xihale/hexo.git
cd hexo
npm install
npm test
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!
I added a unit test to test my changes and find a inconspicuous bug then fixed it.
How to test
git clone -b master https://github.com/xihale/hexo.git
cd hexo
npm install
npm test