Skip to content

Commit 1c98faf

Browse files
omers-oaicodex
andcommitted
Add RTL table behavior preview
Co-authored-by: Codex <noreply@openai.com>
1 parent 0296d87 commit 1c98faf

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

android-sample/src/main/java/com/zachklipp/richtext/sample/RtlCompatibilityBehaviorSample.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ private fun DocumentWidthBehaviorPreview() {
9494
}
9595
}
9696

97+
@Preview(name = "RTL table behavior · he-IL", locale = "he-rIL", widthDp = 412, showBackground = true)
98+
@Composable
99+
private fun TableBehaviorPreview() {
100+
BehaviorPreviewSurface {
101+
BehaviorPreviewColumn {
102+
BehaviorSection(
103+
title = "Markdown table renders in RTL layout",
104+
markdown = tableMarkdown,
105+
)
106+
}
107+
}
108+
}
109+
97110
@Composable
98111
private fun BehaviorPreviewSurface(
99112
content: @Composable () -> Unit,
@@ -215,3 +228,14 @@ private val hebrewDocumentWithOrderedListMarkdown = """
215228
216229
למידע מפורט יותר על האימוג׳ים החדשים והמשמעויות שלהם אפשר לעיין ב-Emojipedia או במקורות נוספים.
217230
""".trimIndent()
231+
232+
private val tableMarkdown = """
233+
פסקה בעברית לפני הטבלה.
234+
235+
| כותרת | Status |
236+
| --- | --- |
237+
| שלום | Ready |
238+
| עברית ואז English | Works |
239+
240+
English paragraph after the table.
241+
""".trimIndent()

0 commit comments

Comments
 (0)