From f06f0ed887563bc42eca483f5faf4c0c36fbf75d Mon Sep 17 00:00:00 2001 From: beamcode <73224590+beamcode@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:42:11 +0900 Subject: [PATCH] fix: error in showLineNumbers example (#236) --- docs/src/content/docs/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index ba64026..1dd4082 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -496,11 +496,11 @@ Add a caption underneath your code block, with text inside double quotes (`""`): CSS counters can be used to add line numbers. ```css {2,6-7} -code { +code[data-line-numbers] { counter-reset: line; } -code > [data-line]::before { +code[data-line-numbers] > [data-line]::before { counter-increment: line; content: counter(line);