-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeBlock
- Expose ability to set custom line number start
#2467
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I was unable to figure out a way to test the custom line numbers as they are added in CSS and not in the DOM. |
d36f2b2
to
70beb72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is a super useful feature when writing tutorials or guides that have segments that build on each other.
@alex-ju Would it be ok if I go ahead and merge this feature? I think it's a generally useful feature for consumers. |
Nice! Great work on this |
I'm ok with merging it. We can monitor its usage in the long run. |
📌 Summary
If merged, this PR will add the ability to set a custom line numbering starting number to the
CodeBlock
component.🔗 External links
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.