italia / designers.italia.it

Designers Italia mette a disposizione la conoscenza e gli strumenti per progettare e realizzare servizi pubblici centrati sulle necessità delle persone
https://designers.italia.it
BSD 3-Clause "New" or "Revised" License
55 stars 38 forks source link

Automation: external links in md fields #543

Open Fupete opened 1 year ago

Fupete commented 1 year ago

We need to intercept external links in markdown fields to add correct a11y props (visually hidden SR help and eventually external link icon)

Fupete commented 1 year ago

Update: found this 👾 that could help parse the markdown fields https://github.com/rehypejs/rehype-external-links of our https://github.com/remarkjs/react-markdown, for links targets and rel for example. We will need to investigate if there are other plugins to add an aria-label or a visually-hidden tip.

Fupete commented 11 months ago

Still to be resolved. See comment https://github.com/italia/designers.italia.it/pull/726#issuecomment-1792645658