prismicio / prismic-svelte

Svelte components and helpers to fetch and present Prismic content
https://prismic.io/docs/technical-reference/prismicio-svelte
Apache License 2.0
22 stars 6 forks source link

fix(helpers): add missing `dir` attribute for right-to-left languages #24

Closed lihbr closed 1 month ago

lihbr commented 1 month ago

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 appropriate dir attribute on right-to-left text nodes.

Related:

Checklist

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.