| author | |
| committer | |
| log | 2def3de4b931206d3387d222454af0daf4a274e2 |
| tree | 8a3ed2a5d2602005f6dd59f3d70733b9930a2d17 |
| parent | 9bbbbbab2a53ccc05a6b3c1ad8cc64ff411d185f |
| signature | Signed by PGP key B5690EEEBB952194 |
1 files changed, 1 insertions(+), 1 deletions(-)
apps/web/src/lib/incrementalHighlighting.ts+1-1| ... | ... | @@ -18,7 +18,7 @@ export function createIncrementalHighlightedDocument( |
| 18 | 18 | highlighter: DiffsHighlighter, |
| 19 | 19 | language: string, |
| 20 | 20 | theme: DiffThemeName, |
| 21 | ) { | |
| 21 | ): (code: string) => ReturnType<DiffsHighlighter["codeToHast"]> { | |
| 22 | 22 | const options = { lang: language, theme }; |
| 23 | 23 | const newline = { type: "text" as const, value: "\n" }; |
| 24 | 24 | let cached: |