@faubulous/mentor-rdf-parsers
    Preparing search index...

    Function tokenizeTemplateForFormatting

    • Tokenizes the body of a Triplate template for token-based formatting, or returns null when text is not a template (the caller formats it normally). The frontmatter is not RDF and is excluded — it is blanked in the host rendering, so it yields no tokens and must be formatted separately and re-attached by the caller.

      Parameters

      • lexer: ILexer

        The host lexer (e.g. TurtleLexer, SparqlLexer).

      • text: string

        The original document text.

      Returns TemplateFormatTokens