Skip to content

Commit b4a1a7e

Browse files
committed
self review
1 parent afed832 commit b4a1a7e

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/components/DocumentView/CodeBlock/highlight.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ type PositionedToken = ThemedToken & { start: number; end: number };
3636
*/
3737
export async function highlight(block: DocumentBlockCode): Promise<HighlightLine[]> {
3838
const langName = block.data.syntax ? getLanguageForSyntax(block.data.syntax) : null;
39-
4039
if (!langName) {
4140
// Language not found, fallback to plain highlighting
4241
return plainHighlighting(block);
4342
}
44-
debugger;
4543

4644
const inlines: InlineIndexed[] = [];
4745
const code = getPlainCodeBlock(block, inlines);

src/components/PageBody/PageBody.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ import { DocumentView, createHighlightingContext } from '../DocumentView';
1717
import { PageFeedbackForm } from '../PageFeedback';
1818
import { DateRelative } from '../primitives';
1919

20-
/**
21-
* Due to a combination of memory limitations of Cloudflare workers and the memory
22-
* cost of shiki, we need to set a limit on the number of blocks we can highlight
23-
* in a single page.
24-
*/
25-
const CODE_HIGHLIGHT_BLOCK_LIMIT = 50;
26-
2720
export function PageBody(props: {
2821
space: Space;
2922
contentTarget: ContentTarget;

0 commit comments

Comments
 (0)