Skip to content
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

Update syntax-highlighting.md to fix alignment between line numbers and lines of code in the example snippet #2796

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Ativerc
Copy link
Contributor

@Ativerc Ativerc commented Feb 11, 2025

Fixes #2795. See details there.

The code blocks are tables. This prevents misalignment b/w the line nos. and line-of-code when the line wraps to the next line.

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

The code blocks are tables. This prevents misalignment b/w the line nos. and line-of-code when the line wraps to the next line.*/

Fixes getzola#2795
@Keats Keats merged commit 0183ee3 into getzola:master Feb 11, 2025
5 checks passed
@Keats
Copy link
Collaborator

Keats commented Feb 11, 2025

Thanks!

@Ativerc Ativerc deleted the aligned-line-nos branch February 12, 2025 15:37
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.

Better Code Block Syntax Highlighting example to prevent mis-aligned line numbers and line of code
2 participants