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

CSS highlight problem for linenos=table #117

Closed
bebound opened this issue Mar 10, 2019 · 3 comments
Assignees
Labels
bug

Comments

@bebound
Copy link

@bebound bebound commented Mar 10, 2019

The table width is not 100% when using linenos=table.

Screen Shot 2019-03-10 at 18 47 45

Here is the markdown file. (linenos=inline works as expected)

+++
title = "test"
+++


{{< highlight python3 "linenos=table, linenostart=1" >}}
def X1():
    return "x1"
{{< / highlight >}}

{{< highlight python3 "linenos=inline, linenostart=1" >}}
def X1():
    return "x1"
{{< / highlight >}}
@laozhu

This comment has been minimized.

Copy link
Owner

@laozhu laozhu commented Mar 10, 2019

@bebound I tested with your code, there's some style overrides with my content.scss and table.scss, I will fix it later.

@bebound

This comment has been minimized.

Copy link
Author

@bebound bebound commented Mar 12, 2019

There is also a CSS problem only occur on Safari(macOS and iOS).
The code block has space on the right side.
url

Screen Shot 2019-03-12 at 5 12 42 PM
Screen Shot 2019-03-12 at 5 12 50 PM

@laozhu

This comment has been minimized.

Copy link
Owner

@laozhu laozhu commented Mar 13, 2019

@bebound Safari problem is caused by this CSS property.

body {  
  font-feature-settings: "liga" on;
}

I will fix the issue tonight.

@laozhu laozhu closed this in 56be16f Mar 13, 2019
@laozhu laozhu self-assigned this Mar 13, 2019
@laozhu laozhu added the bug label Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.