From 2d7f4bf129d331871966c2fd7324da63b18e2196 Mon Sep 17 00:00:00 2001 From: Josh-Cena Date: Tue, 26 Oct 2021 14:53:22 +0800 Subject: [PATCH] Fixup --- packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx index e398227db3c0a..4dd1b83c4bfd2 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx @@ -137,7 +137,7 @@ export default function CodeBlock({ const lineProps = getLineProps({line, key: i}); - if (highlightLines.includes(i + 1)) { + if (highlightLines.includes(i)) { lineProps.className += ' docusaurus-highlight-code-line'; }