JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Function fsl_fence_lang

    • Canonical fence language for an info string, or null if the block is not an FSL fence. Reads only the first whitespace-delimited token, case-insensitively.

      Parameters

      • info: string

        The full fence info string (everything after the opening fence).

      Returns "fsl" | "jssm"

      'fsl' or 'jssm' for our fences; null otherwise.

      fsl_fence_lang('fsl image code') // => 'fsl'
      
      fsl_fence_lang('JSSM')           // => 'jssm'
      
      fsl_fence_lang('mermaid')        // => null