Hide copy code buttons when JS disabled

pull/2912/head
Gavin John 2 years ago committed by GitHub
parent 3d57927a5b
commit ffc9871312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ export function preWrapperPlugin(md: MarkdownIt, options: Options) {
const rawCode = fence(...args) const rawCode = fence(...args)
return `<div class="language-${lang}${getAdaptiveThemeMarker( return `<div class="language-${lang}${getAdaptiveThemeMarker(
options options
)}${active}"><button title="Copy Code" class="copy"></button><span class="lang">${lang}</span>${rawCode}</div>` )}${active}"><button title="Copy Code" class="copy js-required"></button><span class="lang">${lang}</span>${rawCode}</div>`
} }
} }

Loading…
Cancel
Save