LanguageByClass: ((classListEntry) => string | undefined)

Used to extract a language from a given entry in HTMLElement.classList.

Note that matched language tokens must not contain reserved characters such as [ or ] that will break BBCode parsing.

A falsy return value will skip any further language processing and especially will not add any language identifier to the resulting BBCode.

Type declaration

    • (classListEntry): string | undefined
    • Parameters

      • classListEntry: string

      Returns string | undefined