File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/DocumentView/CodeBlock Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ export async function highlight(block: DocumentBlockCode): Promise<HighlightLine
37
37
return plainHighlighting ( block ) ;
38
38
}
39
39
40
+
40
41
const inlines : InlineIndexed [ ] = [ ] ;
41
42
const code = getPlainCodeBlock ( block , inlines ) ;
43
+ console . log ( `block has ${ block . nodes . length } lines, ${ code . length } characters ${ inlines . length } inlines` ) ;
42
44
43
45
inlines . sort ( ( a , b ) => {
44
46
return a . start - b . start ;
@@ -49,7 +51,6 @@ export async function highlight(block: DocumentBlockCode): Promise<HighlightLine
49
51
const lines = highlighter . codeToTokensBase ( code , {
50
52
lang : langName ,
51
53
tokenizeMaxLineLength : 120 ,
52
- includeExplanation : false
53
54
} ) ;
54
55
let currentIndex = 0 ;
55
56
You can’t perform that action at this time.
0 commit comments