Skip to content

Conversation

@KnorpelSenf
Copy link
Contributor

@KnorpelSenf KnorpelSenf commented Apr 29, 2021

Closes #124 by removing 'Courier New' as font which caused the issue.

Must I adjust https://github.com/vuepress/vuepress-next/blob/e971d6aa216102befaa387e062d49b3632fe579c/packages/%40vuepress/theme-default/src/client/styles/_normalize.scss#L114 as well?

Not quite sure if the fix is in core, maybe adjust the commit message when merging.

@KnorpelSenf KnorpelSenf changed the title Fix displaced line numbers in commits Fix displaced line numbers in code blocks Apr 29, 2021
@meteorlxy
Copy link
Member

I think we should align with here:

https://github.com/vuepress/vuepress-next/blob/e971d6aa216102befaa387e062d49b3632fe579c/packages/%40vuepress/theme-default/src/client/styles/code.scss#L12

@meteorlxy
Copy link
Member

@KnorpelSenf Do you have time to handle this? Or I could help to update

@meteorlxy
Copy link
Member

I'm going to release a new version, so I have updated this pr to include the fix.

@meteorlxy meteorlxy marked this pull request as ready for review April 30, 2021 08:26
@meteorlxy meteorlxy changed the title Fix displaced line numbers in code blocks fix(theme-default): align the font of line numbers with code blocks Apr 30, 2021
@meteorlxy meteorlxy changed the title fix(theme-default): align the font of line numbers with code blocks fix(theme-default): align the font of line numbers with code blocks (close #124) Apr 30, 2021
@meteorlxy meteorlxy merged commit a3ea87d into vuepress:main Apr 30, 2021
@KnorpelSenf
Copy link
Contributor Author

Oh sorry for being late, couldn't have done it earlier than now. Thanks for taking over!

@KnorpelSenf KnorpelSenf deleted the fix-displaced-line-numbers branch May 29, 2021 12:00
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.

[Bug report] Line numbers do not match code

2 participants