src/includes/classes/Core/Tokenizer.php
protected function maybeTokenizeMdLinks()
    {
        if (!in_array('md-links', $this->tokenize, true)) {
            return; // Not tokenizing these.
        }
        $_ = static::$m0_esc_no_vws; // Shorter reference.

        $this->string = preg_replace_callback(
            [
                // This one covers MD [links](), [link][references], and ![](images).
                // The negative lookahed for `(?!\/)` is to avoid catching a tokenized shortcode.
                // e.g., Whenever the `shortcode_unautop_compat` configuration option has been enabled.
                '/\!?\[(?:'.$_['[]'].'|(?R))\](?:\h*\[(?!\/)'.$_['[]'].'\]|\('.$_['()'].'\))(?:\h*\{'.$_['{}'].'\})?/ui',

                // In these, we should only tokenize the definition markers and the `<link>` in link definitions.
                '/^\h{0,3}(?:\['.$_['[]'].'\])+\h*\:\h*(?:\<)?[^\s<>]*(?:\>)?/uim', // Link definition markers.
                '/^\h{0,3}(?:\*\['.$_['[]'].'\])+\h*\:/uim', // Abbreviation definition markers.
                '/^\h{0,3}(?:\[\^[0-9]+\])+\h*\:/uim', // Footnote definition markers.

                // Also tokenize MD `<urls>` in brackets.
                '/\<((?:[a-zA-Z][a-zA-Z0-9+.\-]*:)?\/{2}[^\v<>]*)\>/ui',

                // Also tokenize checkbox markers.
                '/^\h*(?:[*+\-]|[0-9]+\.)\h+\[[\sx]\]/uim',
            ],
            function ($m) {
                $this->tokens[] = $m[0];  // Original data for token.
                return $token = '⁅⒯'.$this->id.'⒯'.(count($this->tokens) - 1).'⒯⁆';
            },
            $this->string // Shortcodes replaced by tokens.
        );
    }
protected function maybeTokenizeMdLinks()
    {
        if (!in_array('md-links', $this->tokenize, true)) {
            return; // Not tokenizing these.
        }
        $_ = static::$m0_esc_no_vws; // Shorter reference.

        $this->string = preg_replace_callback(
            [
                // This one covers MD [links](), [link][references], and ![](images).
                // The negative lookahed for `(?!\/)` is to avoid catching a tokenized shortcode.
                // e.g., Whenever the `shortcode_unautop_compat` configuration option has been enabled.
                '/\!?\[(?:'.$_['[]'].'|(?R))\](?:\h*\[(?!\/)'.$_['[]'].'\]|\('.$_['()'].'\))(?:\h*\{'.$_['{}'].'\})?/ui',

                // In these, we should only tokenize the definition markers and the `<link>` in link definitions.
                '/^\h{0,3}(?:\['.$_['[]'].'\])+\h*\:\h*(?:\<)?[^\s<>]*(?:\>)?/uim', // Link definition markers.
                '/^\h{0,3}(?:\*\['.$_['[]'].'\])+\h*\:/uim', // Abbreviation definition markers.
                '/^\h{0,3}(?:\[\^[0-9]+\])+\h*\:/uim', // Footnote definition markers.

                // Also tokenize MD `<urls>` in brackets.
                '/\<((?:[a-zA-Z][a-zA-Z0-9+.\-]*:)?\/{2}[^\v<>]*)\>/ui',

                // Also tokenize checkbox markers.
                '/^\h*(?:[*+\-]|[0-9]+\.)\h+\[[\sx]\]/uim',
            ],
            function ($m) {
                $this->tokens[] = $m[0];  // Original data for token.
                return $token = '⁅⒯'.$this->id.'⒯'.(count($this->tokens) - 1).'⒯⁆';
            },
            $this->string // Shortcodes replaced by tokens.
        );
    }
Maybe tokenize `[md](links)`, et al.

@since 150424 Initial release.