diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss
index 89b9dcf85d5880007a758e87f9e7a0b5ccdad49b..487544da661b2c018ca5175560dcdd3b3e1bdb74 100644
--- a/_sass/custom/custom.scss
+++ b/_sass/custom/custom.scss
@@ -22,7 +22,7 @@ code {
   border: none;
 }
 
-div.highlighter-rouge {
+div.highlighter-rouge[overlay] {
   position: relative;
 
   &::after {