Skip to content

Commit 76ee194

Browse files
committed
Log
1 parent 6270353 commit 76ee194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/DocumentView/CodeBlock/highlight.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ export async function highlight(block: DocumentBlockCode): Promise<HighlightLine
3737
return plainHighlighting(block);
3838
}
3939

40+
4041
const inlines: InlineIndexed[] = [];
4142
const code = getPlainCodeBlock(block, inlines);
43+
console.log(`block has ${block.nodes.length} lines, ${code.length} characters ${inlines.length} inlines`);
4244

4345
inlines.sort((a, b) => {
4446
return a.start - b.start;
@@ -49,7 +51,6 @@ export async function highlight(block: DocumentBlockCode): Promise<HighlightLine
4951
const lines = highlighter.codeToTokensBase(code, {
5052
lang: langName,
5153
tokenizeMaxLineLength: 120,
52-
includeExplanation: false
5354
});
5455
let currentIndex = 0;
5556

0 commit comments

Comments
 (0)