PR into master from dev/olga/add-dir-auto#332
Open
OlgaRedozubova wants to merge 5 commits intomasterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
branch: dev/olga/add-dir-auto
textDirectionoption to add the dir global attribute is an enumerated attribute that indicates the directionality of the element's text.By default, this is not set, and the dir attribute will not be added
When setting option:
textDirection={TextDirection.auto}textDirection={TextDirection.ltr}textDirection={TextDirection.rtl}The dir attribute with the appropriate value will be added to all tokens for all mmd rendering rules.
For example:
By default, the dir attribute will not be added:

textDirection={TextDirection.ltr}which means left to right and is to be used for languages that are written from the left to the right (like English);:textDirection={TextDirection.rtl}which means right to left and is to be used for languages that are written from the right to the left (like Arabic);:textDirection={TextDirection.auto}which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element.:Arabic text:
By default, the dir attribute will not be added:
textDirection={TextDirection.ltr}which means left to right and is to be used for languages that are written from the left to the right (like English);:textDirection={TextDirection.rtl}which means right to left and is to be used for languages that are written from the right to the left (like Arabic);:textDirection={TextDirection.auto}which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element.:TODO: