Skip to content

Commit

Permalink
#640: fix line number alignment in code block
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Oct 1, 2024
1 parent 657807f commit 2b7b9c3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
26 changes: 16 additions & 10 deletions assets/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,22 @@
.highlight {
direction: ltr;
unicode-bidi: embed;
}

.highlight table tr {
td:nth-child(1) pre {
margin: 0;
padding-inline-end: 0;
}
td:nth-child(2) pre {
margin: 0;
padding-inline-start: 0;
border-radius: $border-radius;
overflow: hidden;

table tr {
td pre code > span {
display: flex;
}

td:nth-child(1) pre {
margin: 0;
padding-inline-end: 0;
}
td:nth-child(2) pre {
margin: 0;
padding-inline-start: 0;
}
}
}

Expand Down
Loading

0 comments on commit 2b7b9c3

Please sign in to comment.