Skip to content

add dynamic direction decision for each paragraph - #720

Closed
barziv wants to merge 3 commits into
alex-shpak:mainfrom
barziv:feat/dynamic-ltr
Closed

add dynamic direction decision for each paragraph#720
barziv wants to merge 3 commits into
alex-shpak:mainfrom
barziv:feat/dynamic-ltr

Conversation

@barziv

@barziv barziv commented May 19, 2025

Copy link
Copy Markdown

I added js file that run on each

tag that in the article and change it's direction base on the first charecters

@alex-shpak

Copy link
Copy Markdown
Owner

Hi there!
What is a usecase for it? to switch direction for code blocks, or for mixed language content?

@barziv

barziv commented May 28, 2025

Copy link
Copy Markdown
Author

Hi!
Mixed language content, I write pages that contains both hebrew and english and I want everything on the same side menu.

@alex-shpak

Copy link
Copy Markdown
Owner

Dunno, I'm very reluctant about adding more JS, would it work for you with a shortcode?

@barziv

barziv commented May 31, 2025

Copy link
Copy Markdown
Author

I dont know, how it will work?

@alex-shpak

Copy link
Copy Markdown
Owner

basically there will be a shortcode that can adjust direction of content like:

{{% rtl %}} 
content
{{% /rtl %}}

@alex-shpak

Copy link
Copy Markdown
Owner

I will close this one as stale.

@alex-shpak alex-shpak closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants