diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue index f9aaf4eff3..70dd896505 100644 --- a/packages/frontend/src/components/MkCode.core.vue +++ b/packages/frontend/src/components/MkCode.core.vue @@ -77,7 +77,7 @@ watch(() => props.lang, (to) => { counter-increment: step 0; } -.codeBlockRoot :global(.shiki) > code > .line::before { +.codeBlockRoot :global(.shiki) > code > span::before { content: counter(step); counter-increment: step; width: 1rem;