function blockLanguage(block) {
        let classes = block.className + ' ';

        classes += block.parentNode ? block.parentNode.className : '';

        // language-* takes precedence over non-prefixed class names.
        const match = options.languageDetectRe.exec(classes);
        if (match) {
          const language = getLanguage(match[1]);
          if (!language) {
            console.warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
            console.warn("Falling back to no-highlight mode for this block.", block);
          }
          return language ? match[1] : 'no-highlight';
        }

        return classes
          .split(/\s+/)
          .find((_class) => shouldNotHighlight(_class) || getLanguage(_class));
      }
/**
       * @param {HighlightedHTMLElement} block - the HTML element to determine language for
       */
@param {HighlightedHTMLElement} block - the HTML element to determine language for
@param { HighlightedHTMLElement } block - the HTML element to determine language for
function blockLanguage(block) {
        let classes = block.className + ' ';
        classes += block.parentNode ? block.parentNode.className : '';
        const match = options.languageDetectRe.exec(classes);
        if (match) {
          const language = getLanguage(match[1]);
          if (!language) {
            console.warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
            console.warn("Falling back to no-highlight mode for this block.", block);
          }
          return language ? match[1] : 'no-highlight';
        }
        return classes
          .split(/\s+/)
          .find((_class) => shouldNotHighlight(_class) || getLanguage(_class));
      }
function blockLanguage ( block ) { let classes = block . className + ' ' ; classes += block . parentNode ? block . parentNode . className : '' ; const match = options . languageDetectRe . exec ( classes ) ; if ( match ) { const language = getLanguage ( match [ 1 ] ) ; if ( ! language ) { console . warn ( LANGUAGE_NOT_FOUND . replace ( "{}" , match [ 1 ] ) ) ; console . warn ( "Falling back to no-highlight mode for this block." , block ) ; } return language ? match [ 1 ] : 'no-highlight' ; } return classes . split ( / \s+ / ) . find ( ( _class ) => shouldNotHighlight ( _class ) || getLanguage ( _class ) ) ; }
@param {HighlightedHTMLElement} block - the HTML element to determine language for
@param { HighlightedHTMLElement } block - the HTML element to determine language for
// language-* takes precedence over non-prefixed class names.