Skip to content

Commit

Permalink
Add direction ltr to pre > code and highlight (#611)
Browse files Browse the repository at this point in the history
* Add direction ltr to pre > code and highlight
* Add unicode-bidi: embed;
  • Loading branch information
EssaAlshammri authored Apr 13, 2024
1 parent 0baec34 commit f8a0fc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,17 @@
}

code {
direction: ltr;
unicode-bidi: embed;
padding: 0 $padding-4;
background: var(--gray-200);
border-radius: $border-radius;
font-size: 0.875em;
}

pre {
direction: ltr;
unicode-bidi: embed;
padding: $padding-16;
background: var(--gray-100);
border-radius: $border-radius;
Expand Down Expand Up @@ -150,6 +154,11 @@
}

// Special case for highlighted code with line numbers
.highlight {
direction: ltr;
unicode-bidi: embed;
}

.highlight table tr {
td:nth-child(1) pre {
margin: 0;
Expand Down

0 comments on commit f8a0fc4

Please sign in to comment.