Custom line numbering #8858
Answered
by
slorber
rojakcoder
asked this question in
Q&A
-
So we can add line numbers to code blocks now. I'm wondering if we can change the starting line number? So, instead of lines 1-3 for this code block: 1. console.log('First line');
2. console.log('Second line');
3. console.log('Third line'); Can we have it starting from, say, 6: 6. console.log('First line');
7. console.log('Second line');
8. console.log('Third line'); |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Jan 16, 2025
Replies: 1 comment 4 replies
-
we don't provide this feature but you can swizzle the code block logic and implement it your self if you want What's your motivation to do so, which API would you use to achieve it, and which docs system supports this already? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implemented in #10846