mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Fixed code block highlighting issues with superfences
This commit is contained in:
@@ -102,7 +102,7 @@ function initialize(config) { // eslint-disable-line func-style
|
||||
|
||||
/* Clipboard integration */
|
||||
if (Clipboard.isSupported()) {
|
||||
const blocks = document.querySelectorAll(".codehilite > pre, pre > code")
|
||||
const blocks = document.querySelectorAll("pre > code")
|
||||
Array.prototype.forEach.call(blocks, (block, index) => {
|
||||
const id = `__code_${index}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user