def fence( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType, ) -> str: token = tokens[idx] info = unescapeAll(token.info).strip() if token.info else "" langName = "" langAttrs = "" if info: arr = info.split(maxsplit=1) langName = arr[0] if len(arr) == 2: langAttrs = arr[1] if options.highlight: highlighted = options.highlight( token.content, langName, langAttrs ) or escapeHtml(token.content) else: highlighted = escapeHtml(token.content) if highlighted.startswith("" + highlighted + "\n" ) return ( "
"
            + highlighted
            + "
\n" )