-
Notifications
You must be signed in to change notification settings - Fork 0
Disable line numbers in code blocks #9
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
Co-authored-by: biggiebk <[email protected]>
Co-authored-by: biggiebk <[email protected]>
Co-authored-by: biggiebk <[email protected]>
Co-authored-by: biggiebk <[email protected]>
…blocks Add line numbers to code blocks
Co-authored-by: biggiebk <[email protected]>
|
I didn't want the line numbers removed. Wanted them to be displayed to the left of the code block. |
|
They are currently being printed first with no code and the code is printed after the line numbers. |
biggiebk
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.
I did not ask that the line numbers be removed, but want the line numbers to be properly displayed on the left hand side of the code. Please open the following page for reference.
https://biggiebk.github.io/theme_mymadlab/theme/introduction/2025/10/18/syntax-exmaples.html
Line numbers were rendering in a separate table column disconnected from the code content due to Kramdown's table-based layout with Rouge syntax highlighting.
Changes
line_numbersfor block code in_config.ymlkramdown configurationline_numbers_startsetting (no longer applicable)HTML Structure Change
Before:
After:
Visual Impact
Before:

After:

Syntax highlighting and copy functionality remain unchanged.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.