Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ZothOmmog
Copy link

Fixes #835

This PR adds the ability to display line numbers in code blocks. Users can now toggle line numbers visibility through a checkbox in the code block toolbar.

image

@ZothOmmog
Copy link
Author

This exist some issues with caret

Yandex.Browser (macos)

push arrow right before code block

yabr.mov

select language javascript and print const

yabrconst.mov

Firefox (macos)

push arrow left on start of line in code block

ffarl.mov

print some before empty line

ffdelline.mov

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@ZothOmmog
Copy link
Author

need config implementation

@ZothOmmog
Copy link
Author

ZothOmmog commented Nov 13, 2025

I have other implementation without caret bugs, but with dom modification (I'm not sure I changed all the necessary places)

#879

Maybe it's better?

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.

Support line numbers in code blocks

2 participants