From c73e07d42d8fc3113ca2d67ca180160ec1baaaef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Fri, 13 Dec 2024 13:16:55 +0100 Subject: [PATCH] Increase token max length to fix code not highlighted (#2629) --- .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 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