From f8a0fc4e246c61cea8159d2d2955f488e7d13848 Mon Sep 17 00:00:00 2001 From: Essa Alshammri Date: Sat, 13 Apr 2024 12:19:59 +0300 Subject: [PATCH] Add direction ltr to pre > code and highlight (#611) * Add direction ltr to pre > code and highlight * Add unicode-bidi: embed; --- assets/_markdown.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/_markdown.scss b/assets/_markdown.scss index 13607e7a..e7170cbc 100644 --- a/assets/_markdown.scss +++ b/assets/_markdown.scss @@ -69,6 +69,8 @@ } code { + direction: ltr; + unicode-bidi: embed; padding: 0 $padding-4; background: var(--gray-200); border-radius: $border-radius; @@ -76,6 +78,8 @@ } pre { + direction: ltr; + unicode-bidi: embed; padding: $padding-16; background: var(--gray-100); border-radius: $border-radius; @@ -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;