File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ jQuery(document).ready(function() {
229
229
e . stopPropagation ( ) ;
230
230
}
231
231
} ) ;
232
-
232
+
233
233
jQuery ( document ) . keydown ( function ( e ) {
234
234
// prev links - left arrow key
235
235
if ( e . which == '37' ) {
@@ -264,7 +264,7 @@ jQuery(document).ready(function() {
264
264
} ) ;
265
265
}
266
266
267
- /**
267
+ /**
268
268
* Fix anchor scrolling that hides behind top nav bar
269
269
* Courtesy of https://stackoverflow.com/a/13067009/28106
270
270
*
@@ -346,7 +346,7 @@ jQuery(document).ready(function() {
346
346
347
347
$ ( document ) . ready ( $ . proxy ( anchorScrolls , 'init' ) ) ;
348
348
} ) ( window . document , window . history , window . location ) ;
349
-
349
+
350
350
} ) ;
351
351
352
352
jQuery ( window ) . on ( 'load' , function ( ) {
@@ -388,7 +388,7 @@ jQuery.extend({
388
388
highlight : function ( node , re , nodeName , className ) {
389
389
if ( node . nodeType === 3 ) {
390
390
var match = node . data . match ( re ) ;
391
- if ( match ) {
391
+ if ( match && ! $ ( node . parentNode ) . hasClass ( "mermaid" ) ) {
392
392
var highlight = document . createElement ( nodeName || 'span' ) ;
393
393
highlight . className = className || 'highlight' ;
394
394
var wordNode = node . splitText ( match . index ) ;
You can’t perform that action at this time.
0 commit comments