krautzource / sre-to-tree

MIT License
0 stars 0 forks source link

workaround for links #22

Closed pkra closed 3 years ago

pkra commented 3 years ago

MathJax+SRE currently do not render link in a way that put them into the tree structure.

As per F2F with @zorkow, a reasonable hack might be to "push" the link to the first tree element among its descendants, i.e., mark the first tree descendant somehow (data-href?) that helps a walker to look up the href.

While this might not be completely perfect (there can be situations where the link will have multiple children instead of a single group), it seems good enough almos always.

pkra commented 3 years ago

This needs coordination with downstream solutions => https://github.com/krautzource/aria-tree-walker/issues/26

pkra commented 3 years ago

On second thought could we make all of them links? (Asked upstream; let's go ahead until we know what to expect.)

pkra commented 3 years ago

While we're at it, add "link" to the aria label. Not sure if braille displays do something similar but it's probably too risky to add something to the Nemeth.