Skip to content

highlight-highlights.ts#

View Markdown

Source

1 documented symbol. Read the signatures first, then expand each item for parameters, return types, and examples.

1 symbols 1 functions 2 parameters 1 returns

Reference#

fnhighlightWithHighlights(code: string, language: string): Element | nullBuild the rehype node directly so its serializer escapes the source once.

Build the rehype node directly so its serializer escapes the source once.

Signature

export function highlightWithHighlights(code: string, language: string): Element | null

View source

Parameters

  • code string
  • language string

Returns

Element | null