= ({
return (
<>
- {text}
+ {/* The paragraph's auto direction ignores word boxes with their own dir. */}
+ {text}
{words.map((word, wordIndex) => (
-
+
{word.map((letter, letterIndex) => {
const index =
words.slice(0, wordIndex).reduce((acc, w) => acc + w.length, 0) + letterIndex;