(self, md, md_globals)
Add support for :::language`code` code hiliting.
Add support for :::language`code` code hiliting.
Add support for ::: language code code hiliting .
def extendMarkdown(self, md, md_globals):
        """Add support for :::language`code` code hiliting."""

        config = self.getConfigs()

        if config.get('use_codehilite_settings'):  # pragma: no coverage
            warnings.warn(
                "'use_codehilite_settings' is deprecated and does nothing.\n"
                "\nCodeHilite settings will only be used if CodeHilite is configured\n"
                " and 'pymdownx.highlight' is not configured.\n"
                "Please discontinue use of this setting as it will be removed in the future.",
                PymdownxDeprecationWarning
            )

        inline_hilite = InlineHilitePattern(BACKTICK_CODE_RE, md)
        inline_hilite.config = config
        md.inlinePatterns['backtick'] = inline_hilite
def extendMarkdown ( self , md , md_globals ) : config = self . getConfigs ( ) if config . get ( 'use_codehilite_settings' ) : # pragma: no coverage warnings . warn ( "'use_codehilite_settings' is deprecated and does nothing.\n" "\nCodeHilite settings will only be used if CodeHilite is configured\n" " and 'pymdownx.highlight' is not configured.\n" "Please discontinue use of this setting as it will be removed in the future." , PymdownxDeprecationWarning ) inline_hilite = InlineHilitePattern ( BACKTICK_CODE_RE , md ) inline_hilite . config = config md . inlinePatterns [ 'backtick' ] = inline_hilite