Skip to content

feat(editor): add source line numbers#555

Merged
murongg merged 1 commit into
mainfrom
feature/537-source-line-numbers
Jul 18, 2026
Merged

feat(editor): add source line numbers#555
murongg merged 1 commit into
mainfrom
feature/537-source-line-numbers

Conversation

@murongg

@murongg murongg commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add optional CodeMirror line numbers to Source mode and the source side of split view
  • persist the preference through Editor settings and add localized labels for every supported locale
  • update the line-number gutter without recreating the editor; visual preview remains unchanged

Validation

  • pnpm test
  • pnpm typecheck:test
  • pnpm build
  • manually enabled line numbers in the local web app and checked Source and Preview + Source layouts, including overflow and console errors

Risk

Low. The preference defaults to off and uses CodeMirror built-in line numbers without adding a dependency.

Closes #537

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markra-web Ready Ready Preview, Comment Jul 17, 2026 1:19pm

@murongg
murongg merged commit 81c6174 into main Jul 18, 2026
21 checks passed
@murongg
murongg deleted the feature/537-source-line-numbers branch July 18, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 支持显示文档行号

1 participant