Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to make codeblocks ltr in rtl languages #411

Closed
mohammad-amin-khajeh opened this issue Oct 15, 2024 · 2 comments · Fixed by #412
Closed

Add the ability to make codeblocks ltr in rtl languages #411

mohammad-amin-khajeh opened this issue Oct 15, 2024 · 2 comments · Fixed by #412
Labels
enhancement New feature or request

Comments

@mohammad-amin-khajeh
Copy link

Feature Request

Summary

Making codeblocks more sane and correct behaving. There's no need for them to ever be rtl in my opinion.

Motivation

Comments in a codeblock may or may not be in the rtl language at hand, however there is no need for the code itself to be rtl, in fact it looks very wrong and weird most of the times.

Detailed Description

I suggest adding code,pre {direction: ltr} to sass/parts/_code.scss or at least adding a shortcode that adds such feature

Additional Context

Code editor(ltr)

2024-10-15 23-16-52

Website(rtl)

2024-10-15 23-17-03

@mohammad-amin-khajeh mohammad-amin-khajeh added the enhancement New feature or request label Oct 15, 2024
@welpo
Copy link
Owner

welpo commented Oct 15, 2024

Makes sense to me.

Would the header (colour bar) be okay as is?

@mohammad-amin-khajeh
Copy link
Author

Yes actually the header is just fine as it is. It's just the alignment of code below it that is quite irritating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants