-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[DRAFT] feat: show line numbers in markdown blocks #2320
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for slidev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@slidev/client
create-slidev
create-slidev-theme
@slidev/parser
@slidev/cli
@slidev/types
commit: |
|
Love the idea! |
kermanx
left a comment
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.
LGTM. The lint error seems to require manual update. About the odd behavior when the document is not saved yet, I wasn't noticing this because I always have autoSave on🥲. Maybe it should be fixed somehow later.
Fixed |
Add line numbers for code blocks in Slidev VSCode extension
Motivation
I have many code blocks in my presentations. And I often need to know line numbers (e.g., for line highlighting {1|7-9...} ). It would therefore be useful to see line numbers directly in the editor.
Description
This PR adds an optional feature to display line numbers for code blocks in the Slidev VSCode extension, making it easier to reference specific lines when working with code in presentations.
Screenshots
Changes
1. Line numbers decoration for code blocks
```)magic-move(4+ backticks)slidev.annotations-line-numberssetting (default:true)Known issues
startLineoption