MCPcopy Create free account
hub / github.com/modem-dev/hunk / pierreRenderOptions

Function pierreRenderOptions

src/ui/diff/pierre.ts:42–50  ·  view source on GitHub ↗

Build render options for the active syntax theme.

(theme: HighlightThemeInput)

Source from the content-addressed store, hash-verified

40
41/** Build render options for the active syntax theme. */
42function pierreRenderOptions(theme: HighlightThemeInput) {
43 return {
44 theme: highlighterThemeName(theme),
45 useTokenTransformer: false,
46 tokenizeMaxLineLength: 1_000,
47 lineDiffType: "word-alt" as const,
48 maxLineDiffLength: 10_000,
49 };
50}
51
52type HighlightOptions = ReturnType<typeof getHighlighterOptions>;
53

Callers 2

loadHighlightedDiffFunction · 0.85

Calls 1

highlighterThemeNameFunction · 0.85

Tested by

no test coverage detected