diff --git a/.changeset/ten-parrots-argue.md b/.changeset/ten-parrots-argue.md new file mode 100644 index 000000000..1a592b901 --- /dev/null +++ b/.changeset/ten-parrots-argue.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Increase token max length to fix code not highlighted diff --git a/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts b/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts index 62d082b50..3432f56bc 100644 --- a/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts +++ b/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts @@ -50,7 +50,7 @@ export async function highlight(block: DocumentBlockCode): Promise