-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
lineNumbers options is not working when using Code Snippets #1754
Comments
workaround If you specify the line numbers to highlight (e.g. Any Text...
<!-- display line numbers -->
<<< @snippets/something-code.ts {1-100}{lines: true}
<!-- not display line numbers -->
<<< @snippets/something-code.ts {lines: true}
Any Text... |
This is an expected behavior. The first A more elegant way is: <<< @snippets/something-code.ts {*}{lines: true} |
@kermanx See Minimal reproduction properly. I'm expecting that if I set Please reopen this issue. |
Describe the bug
The
lineNumbers: true
option displays line numbers in code blocks,but line numbers are not displayed when imported as Code Snippets.
Minimal reproduction
Steps to reproduce the behavior:
npm init slidev@latest
slides.md
, and add the optionlineNumbers: true
npm run dev
https://stackblitz.com/edit/github-fc4pne?file=slides.md
Environment
The text was updated successfully, but these errors were encountered: