Fix fancy code blocks having table styles

This commit is contained in:
daudix
2024-04-03 03:01:55 +03:00
parent 0fa24c2d7c
commit 25068859f7
2 changed files with 25 additions and 0 deletions

21
content/demo/code.md Normal file
View File

@ -0,0 +1,21 @@
+++
title = "Code Block Demo"
+++
```scss, linenos, linenostart=10, hl_lines=3-4 8-9, hide_lines=2 7
pre mark {
display: block;
color: currentcolor;
}
pre table td:nth-of-type(1) {
color: #6b6b6b;
font-style: italic;
}
```

View File

@ -225,8 +225,12 @@ pre {
}
table {
box-shadow: none;
border-radius: 0;
border-collapse: collapse;
width: 100%;
table-layout: auto;
overflow: auto;
}
// The line numbers already provide some kind of left/right padding