ggrossetie / asciidoctor-emoji

Asciidoctor.js extension to add emoji in your document!
MIT License
7 stars 5 forks source link

Changes CND to prevent redirections #91

Closed xavier-calland closed 11 months ago

xavier-calland commented 11 months ago

When fetching https://twemoji.maxcdn.com/2/svg/XXX.svg the response status is "301 Moved Permanently" with "Location https://cdn.jsdelivr.net/npm/twemoji@latest/2/svg/XXX.svg"

To avoid redirections and we change the CDN.

Moreover, asciidoctorjs in version 3 does not correctly manage these redirections to download images in SAFE mode. Changing the CDN works around the problem.

ggrossetie commented 11 months ago

Thanks!