paged.pollyfill.js breaks the code line numbers made by counter(step).
Hi, my code block's line number feature is broken after referencing the script: 'https://unpkg.com/pagedjs/dist/paged.polyfill.js'. Not sure if there is any workaround for it?
My code line number CSS is
code {
white-space: pre-wrap !important;
counter-reset: step;
counter-increment: step 0;
margin-left: 40px;
min-width: calc(100% - 40px) !important;
}
.line::before {
content: counter(step);
counter-increment: step;
width: 2ch;
margin-right: 36px;
margin-left: calc(-36px - 2ch);
display: inline-block;
text-align: right;
color: var(--vp-code-line-number-color);
}
https://unpkg.com/pagedjs/dist/paged.polyfill.js'
Working without 'Online demo: https://stackblitz.com/edit/vite-bz9x8q?file=docs%2Findex.md
https://unpkg.com/pagedjs/dist/paged.polyfill.js'
Not working with 'See https://stackblitz.com/edit/vite-5f2ao7?file=docs%2F.vitepress%2Fconfig.ts