pages-themes / cayman

Cayman is a Jekyll theme for GitHub Pages
https://pages-themes.github.io/cayman/
Creative Commons Zero v1.0 Universal
1.2k stars 3.16k forks source link

Line numbering in code blocks is messy #138

Open Pamplemousse opened 2 years ago

Pamplemousse commented 2 years ago

By adding

kramdown:                                                                                                                                                                                          
   syntax_highlighter_opts:                                                                                                                                                                         
     block:                                                                                                                                                                                         
       line_numbers: true

to their Jekyll configuration, one can have line numbers displayed in code blocks.

However, I tried this with the cayman theme, and the display is messily overcomplicated. This the following screenshot: Screenshot_2021-09-22_10-52-14

I expected only to see the outermost border.

Pamplemousse commented 2 years ago

Also, note that inlining

{% highlight c linenos %}
...
{% highlight %}

directly in the .md instead of changing the configuration produces the same behavior.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.