xianmin / hugo-theme-jane

A readable & concise theme for Hugo
https://xianmin.github.io/hugo-theme-jane/
MIT License
918 stars 285 forks source link

In e4f2475, code block with one line looks weird #350

Open CyrusYip opened 1 year ago

CyrusYip commented 1 year ago

This problem occur in https://github.com/xianmin/hugo-theme-jane/commit/e4f24755a892257c52d7b5351003a4524cfa7f07 .

In the code block with one line, the space between number and code is too little. In the code block with more than one line, the space between numbers and code is normal.

image

I use hugo v0.99.1.

❯ hugo version
hugo v0.99.1-d524067382e60ce2a2248c3133a1b3af206b6ef1+extended linux/amd64 BuildDate=2022-05-18T11:18:14Z VendorInfo=gohugoio

Reproducible example:

git clone https://github.com/xianmin/hugo-theme-jane.git
cd hugo-theme-jane
git reset --hard e4f2475
hugo server --contentDir='./exampleSite/content' --config='dev-config.toml'

Visit http://localhost:1313/hugo-theme-jane/post/syntax-highlighting/ in your browser.


Example file: exampleSite/content/post/syntax-highlighting.md.

Excerpt:

```php
<?php
  echo 'Hello, World!';
?>
print("Hello, World!")