Skip to content
API reference

lib/tanstack-highlight

Import
import * as api from "@fungi.computer/caps/lib/tanstack-highlight";
Kind Export Description
constant highlightMarkdownCode Highlights Markdown fences with the shared chat and document language set.
function highlightToHtml() Converts source code to escaped token spans for a code display.

highlightMarkdownCodeconstant

Section titled “highlightMarkdownCode”
Signature
const highlightMarkdownCode: TanStackMarkdownHighlighter;

Highlights Markdown fences with the shared chat and document language set.

highlightToHtml()function

Section titled “highlightToHtml()”
Signature
function highlightToHtml(code, lang?): string;

Converts source code to escaped token spans for a code display.

Parameter Type
code string
lang? string

string