hexo
hexo copied to clipboard
feat(tag/code): add `language_attr` option (hexojs/hexo-util#278)
What does it do?
Add an option called language_attr.
Screenshots
None.
Pull request tasks
- [x] Add test cases for the changes.
- [x] Passed the CI test.
How to test
git clone -b highlight/language-attr https://github.com/renbaoshuo/hexo.git
cd hexo
npm install
npm test
Coverage increased (+0.001%) to 98.036% when pulling f935f183bfa4fe1fe8cad3141d440790720124fd on renbaoshuo:highlight/language-attr into b48f0950efd0608bb29ad79792950458b8afe018 on hexojs:master.
@renbaoshuo
Does we need release a new version of hexo-util before merge this PR?
Pending https://github.com/hexojs/hexo-util/pull/279