This PR updates the default richtext serializer to honor the direction property of rich text nodes and adds the appropriate dir attribute on right-to-left text nodes.
[x] If my changes affect backward compatibility, it has been discussed.
[x] If my changes require an update to the CONTRIBUTING.md guide, I updated it.
Preview
How to QA [^1]
[^1]:
Please use these labels when submitting a review:
:question: #ask: Ask a question.
:bulb: #idea: Suggest an idea.
:warning: #issue: Strongly suggest a change.
:tada: #nice: Share a compliment.
Resolves: https://prismic-team.slack.com/archives/C014VAACCQL/p1729780207755199
Description
This PR updates the default richtext serializer to honor the
direction
property of rich text nodes and adds the appropriatedir
attribute on right-to-left text nodes.Related:
@prismicio/client
PR: https://github.com/prismicio/prismic-client/pull/357@prismicio/react
PR: https://github.com/prismicio/prismic-react/pull/211Checklist
Preview
How to QA [^1]
[^1]: Please use these labels when submitting a review: :question: #ask: Ask a question. :bulb: #idea: Suggest an idea. :warning: #issue: Strongly suggest a change. :tada: #nice: Share a compliment.