Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
fix(highlight): remove unused classes of code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Sep 17, 2018
1 parent 47fb013 commit 711a346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/99_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function patchCodeHighlight(content) {
const classes = $(this).attr('class').split(' ');
if (classes.length === 1) {
$(this).addClass('hljs-' + classes[0]);
$(this).removeClass(classes[0]);
}
});
return $.html();
Expand Down

1 comment on commit 711a346

@ppoffice
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#67

Please sign in to comment.