You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add direction property to syntax tree and generated HTML? #694
Some languages like Arabic and Hebrew are written from right to left, and considering many apps and websites now depend on marked, I would like to add support for text direction at the syntax tree level so it benefits every project that depends on marked. Here's how I'd go about it:
For elements like headings and paragraphs, perform a check to determine the direction of the text using the text property of the token. Here's how it is usually done:
Activity
ali4ever4 commentedon Jan 20, 2016
i was looking for such feature it really will be helpful
KayvanMazaheri commentedon Mar 28, 2016
It would be very helpful to have RTL support in Marked. What do you think @chjj ?
joshbruce commentedon Apr 13, 2018
Closing for now for future consideration.