Skip to content

Commit

Permalink
feat: add line number in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
SignorMercurio committed May 12, 2022
1 parent 5a1ad1d commit 056b05d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site2/website-next/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -981,4 +981,20 @@ footer .row.footer__links {
}
.theme-doc-version-badge {
display: none;
}

.prism-code {
counter-reset: line-number;
}

.prism-code .token-line::marker {
color: var(--ifm-color-gray-700);
content: counter(line-number);
}

.prism-code .token-line {
counter-increment: line-number;
display: list-item;
padding-left: var(--ifm-pre-padding);
margin-left: var(--ifm-global-spacing);
}

0 comments on commit 056b05d

Please sign in to comment.