-
Notifications
You must be signed in to change notification settings - Fork 101
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
line numbers positioned wrong in Safari #31
Comments
Thanks for the report @Haroenv. I can't reproduce the bug. What is your safari version? Are you using it on a Mac or a PC? Are you sure the problem come from the line-height? Maybe the lines you see are those from another file or the last ones are missing. |
Ok I see it. |
It seems that the problem come from Safari which doesn't recognize I'm using Highlight.js for the syntax coloration with vue-highlightjs. The library isn't very flexible and even if I could add one of the line numbers plugins, those are very poorly made and probably won't work in Keppler case. I tried to add If anyone has any suggestion that might help |
Did you try a pure css solution with counters on every line of code? That way it should stay synchronised with the lines I think https://www.sylvaindurand.org/using-css-to-add-line-numbering/ |
Yes but there is two problems:
|
line numbers are smaller than the lines itself. Would maybe be interesting to put them into the same line as the line of code itself to make it simpler.
It looks correct in Chrome.
The text was updated successfully, but these errors were encountered: