fix(highlight): allow pre fragments

This commit is contained in:
Nico Jansen
2021-07-06 18:19:10 +02:00
parent 1be851658f
commit 20d7c87a2f
2 changed files with 15 additions and 1 deletions

View File

@ -35,7 +35,7 @@ const Plugin = {
Array.from( reveal.getRevealElement().querySelectorAll( 'pre code' ) ).forEach( block => {
block.parentNode.className = 'code-wrapper';
block.parentNode.classList.add('code-wrapper');
// Code can optionally be wrapped in script template to avoid
// HTML being parsed by the browser (i.e. when you need to