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

Table numbering issue for highlight #106

Open
papersaltserver opened this issue May 13, 2021 · 2 comments
Open

Table numbering issue for highlight #106

papersaltserver opened this issue May 13, 2021 · 2 comments

Comments

@papersaltserver
Copy link

There is an issue with paddings when line numbers placed in table mode:
image

@papersaltserver
Copy link
Author

papersaltserver commented May 14, 2021

Further investigation showed it is due

pre code {
    padding: 0;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: inherit;
    color: inherit;
    -->white-space: pre-wrap;<--
    background-color: transparent;
    border-radius: 0;
}

Seems as for now, Hugo is not ready for code fenced blocks with word wrap

@matsuyoshi30
Copy link
Owner

Hi @papersaltserver, thanks for reporting this!

Harbor purposely doesn't show line numbers. When users write a very long line in a code block, the priority is to wrap the line so that it does not exceed the width of the article. If you want to show line numbers, please use linenos=inline.

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

No branches or pull requests

2 participants