You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(ios): simplify accessibility text element creation (#188)
* refactor(ios): simplify accessibility text element creation
* docs: enhance accessibility documentation with text announcements and known issues sections
Copy file name to clipboardExpand all lines: docs/ACCESSIBILITY.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
The library implements native accessibility features that enable screen readers (VoiceOver on iOS and TalkBack on Android) to properly navigate and understand Markdown content. This includes semantic labeling, custom navigation controls, and proper announcements for all supported elements.
8
8
9
+
## Text Announcements
10
+
11
+
Plain text paragraphs without inline links or images are announced as a single VoiceOver element per paragraph. Paragraphs containing links or images are segmented into text, link, and image parts so that each remains independently navigable. List items follow the same logic — a list item without inline specials is a single element, while one containing a link is split accordingly. Whitespace-only segments between elements are filtered out to avoid empty announcements.
12
+
9
13
## Supported Elements
10
14
11
15
| Element | VoiceOver (iOS) | TalkBack (Android) |
@@ -81,3 +85,7 @@ List items are announced with their position and type:
81
85
**Nested Lists:**
82
86
- iOS: Proper depth handling with semantic structure
83
87
- Android: "Nested" prefix is added for items at deeper levels (e.g., "nested bullet point", "nested list item 1")
88
+
89
+
## Known Issues
90
+
91
+
-**Blockquote border with inline links (iOS):** When a blockquote contains inline links, the background/border may break at link boundaries instead of spanning the full line. This is a cosmetic limitation of `NSAttributedString` drawing separate background rects per attribute run and will be addressed in a future update.
0 commit comments