VermontDepartmentOfHealth / docgov

some public facing standards, guidelines, and, well, documentation
https://docgov.netlify.app/
MIT License
3 stars 3 forks source link

Add target=_blank to external links #97

Closed KyleMit closed 4 years ago

KyleMit commented 4 years ago

From Links to cross-origin destinations are unsafe - target=_blank should also be accompanied by rel=noopener

Regex to check for external links ^https?:\/\/(?!docgov.dev)

Markdown-it docs > architecture > renderer gives an example of extending the link anchor renderer