LiYanan2004 / MarkdownView

Rendering Markdown text natively in SwiftUI.
https://liyanan2004.github.io/MarkdownView/documentation/markdownview/
MIT License
146 stars 14 forks source link

Add accessibly annotations or a way to decorate headers and lists with them #28

Open opi-smccoole opened 3 weeks ago

opi-smccoole commented 3 weeks ago

The feature you want to get in MarkdownView Add accessibly annotations or a way to decorate headers and lists with them

Describe that feature in detail Currently items like headers and lists are just composed of native Text views and these render well and it looks great. But when read by VoiceOver, they are just read and not announced as ", heading" and lists do not have the ", in list" and "out of list" when the next element past the list is read, etc. Could additions be made to the library to either add these accessibility traits by default or a way to add them via something like the custom providers that exist for Image and Blocks now?

Behavior in different OS

Additional context You can see the current reading behavior by bringing up anything in MarkdownView and then using the AccessibilityInspector or Voiceover to read it.

LiYanan2004 commented 1 week ago

Great suggestions, thank you, I just finished my final exam and I'll investigate this later.

It would be great if you can help me. Maybe we can draft a PR for this? 😁