-
Notifications
You must be signed in to change notification settings - Fork 25
feat: show line numbers in text/markdown editor, fix lists not rendered correctly #1449
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
Conversation
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.
Pull Request Overview
This PR adds line number support to the markdown editor by integrating CodeMirror's line numbers extension.
Key Changes:
- Added
@codemirror/viewdependency to enable line numbers functionality - Integrated line numbers into the text editor extensions array
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/web-pkg/package.json | Added @codemirror/view dependency for line numbers support |
| packages/web-pkg/src/components/TextEditor/TextEditor.vue | Imported and configured line numbers extension in the editor |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| return [ | ||
| ...extensions, | ||
| { | ||
| type: 'lineNumbers', |
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.
not everybody likes line numbers.. possible to make them optional?
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.
We would need a new toolbar extension for that, possibly doable in a follow up
kulmann
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, thank you!
Description
Related Issue
How Has This Been Tested?
Types of changes