Build render options for the active syntax theme.
(theme: HighlightThemeInput)
| 40 | |
| 41 | /** Build render options for the active syntax theme. */ |
| 42 | function 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 | |
| 52 | type HighlightOptions = ReturnType<typeof getHighlighterOptions>; |
| 53 |
no test coverage detected