Skip to content

Commit

Permalink
chore: update class
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 30, 2024
1 parent ee77167 commit e4471e0
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const preWrapperPlugin = (
const title = resolveAttr(info, 'title') ?? language.ext

/**
* Add the `prismjs` class name to distinguish the highlight library used for the current code block.
* Add information to dataset for current code block.
*/
return `<div class="prismjs ${languageClass}" data-ext="${language.ext}" data-title="${title}">${result}</div>`
return `<div class="${languageClass}" data-highlighter="prismjs" data-ext="${language.ext}" data-title="${title}">${result}</div>`
}
}
Loading

0 comments on commit e4471e0

Please sign in to comment.