HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/plugins/enlighter/modules/extensions/Jetpack.php
<?php

namespace Enlighter\extensions;

use \Enlighter\skltn\ResourceManager as ResourceManager;

class Jetpack{

    public static function init($gfmCode=false){

        // markdown codeblock compatibility
        if ($gfmCode){
            // preserve gfm style codeblocks + extended inline codeblocks
            add_filter('jetpack_markdown_preserve_pattern', function ($patterns){
                // exclude inline codeblocks (standard+extended)
                $patterns[] = '/(^|\s)`[^`]+`\w*(\s|$)/Um';

                // exclude fenced codeblocks (GFM)
                $patterns[] = '/^```[\S\s]+?```\s*$/m';

                return $patterns;
            });
        }

    }

    // @see resources/extensions/jetpack-infinite-scroll.js
    public static function getInfiniteScrollCode(){
        return '!function(n){"undefined"!=typeof jQuery&&jQuery(document.body).on("post-load",function(){"undefined"!=typeof EnlighterJSINIT&&n.setTimeout(function(){EnlighterJSINIT.apply(n)},180)})}(window);';
    }
}