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

Code highlighting with linenos parameter is not displayed correctly #35

Open
aleixsanchis opened this issue Apr 8, 2020 · 2 comments
Open

Comments

@aleixsanchis
Copy link

Hi, I love your theme but I'm having trouble with an issue (I described it here https://stackoverflow.com/questions/60959717/lilenos-parameter-on-jekyll-highlight-tag-makes-the-code-disappear-and-only-re).

Basically, using the linenos parameters in a highlight block breaks and the code is not displayed.

Thanks a lot

@aleixsanchis
Copy link
Author

aleixsanchis commented Apr 9, 2020

Hi, I managed to more or less get a working version, in case someone is encountering the same error and if the author doesn't answer:

in assets/scss/_syntax-highlighting.scss:

The line 31:

* {
        white-space: nonwrap;
}

Becomes

* {
        white-space: pre;
}

And on file assets/scss/base/_table.scss

The line 5:

 table-layout: fixed;

becomes

 table-layout: auto;

The result is still not quite there because some borders need deleting but at least the result is not broken

I could do a pull request but html/css is far from my expertise and I don't know if these changes break something else related to tables

@lcorcodilos
Copy link

Just wanted to say thanks! Using

* {
        white-space: pre;
}

fixed my separate issue that the syntax highlighting was messing up the white space in JSON and python modes!

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