ejmg / zerm

a minimalist and dark theme for Zola
https://zerm.ejmg.now.sh/
MIT License
116 stars 39 forks source link

bugfix/fix render for code blocks with line numbers #63

Closed djacu closed 2 years ago

djacu commented 2 years ago

Code blocks with linenos enabled becomes tables. Originally, these code blocks would inherit their styling from the global table style. I added styling so that the nested table appears more like the original code block by inserting table styling inside the code and pre styles to override the global table styles.

A comparison can be seen below and is improved compared to #62.

image

I added a nominal padding-right to the td:first-child so the line numbers would have some buffer before the code. Feel free to make this line or any of it better as I am not very familiar with front end development.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
zerm ✅ Ready (Inspect) Visit Preview Jun 14, 2022 at 2:29AM (UTC)
ejmg commented 2 years ago

Great catch and fix, thank you so much for the PR