Skip to content

Commit

Permalink
fix: error in showLineNumbers example (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
beamcode authored and o-az committed Aug 28, 2024
1 parent 511ec27 commit 2299c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2299c9b

Please sign in to comment.