Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/frugal/docs/dep/prism.ts>Token.stringify

A frugal web framework
Go to Latest
method Token.stringify
import { Token } from "https://deno.land/x/frugal@0.5.0/docs/dep/prism.ts";

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

The following hooks will be run:

  1. wrap: On each Prism.Token.

Parameters

The token or token stream to be converted.

language: string

The name of current language.

optional
parent: Array<string | Token>

Returns

string

The HTML representation of the token or token stream.