From 6e67520454395ffcf098e205e932dadfe638d6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Fri, 13 Dec 2024 00:00:51 +0100 Subject: [PATCH] Increase token max length to fix code not highlighted --- .changeset/ten-parrots-argue.md | 5 +++++ .../src/components/DocumentView/CodeBlock/highlight.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/ten-parrots-argue.md diff --git a/.changeset/ten-parrots-argue.md b/.changeset/ten-parrots-argue.md new file mode 100644 index 0000000000..1a592b9018 --- /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 62d082b50b..3432f56bc3 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