🚧 Change the code block style settings.

This commit is contained in:
凡梦星尘
2022-06-29 08:56:13 +08:00
parent 748c44e25d
commit b9cd603c04
5 changed files with 44 additions and 37 deletions

View File

@@ -41,7 +41,7 @@ NexT.utils = {
*/
registerCopyCode: function() {
let figure = document.querySelectorAll('.highlight pre');
if (figure.length === 0 || !CONFIG.copycode) return;
if (figure.length === 0 || !CONFIG.copybtn) return;
figure.forEach(element => {
let cn = element.querySelector('code').className;
// TODO seems hard code need find other ways fixed it.