Prism API - v1.29.0
    Preparing search index...

    Function stringify

    • Converts the given token or token stream to an HTML representation.

      The following hooks will be run:

      1. wrap: On each Token.

      Parameters

      • o: string | Token | TokenStream

        The token or token stream to be converted.

      • language: string

        The name of current language.

      • hooks: Hooks

      Returns string

      The HTML representation of the token or token stream.