New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Privacy plugin does not download Twemoji SVGs #3851
Comments
Good catch! Should be doable, I'll investigate. |
Fixed in
Running |
I further improved caching of the downloaded assets in |
Released as part of 8.2.12+insiders-4.13.2. |
This is not working consistently for me. Some examples I've tested:
As best as I can tell with the emojis I've tested, emojis with 4-character codepoints download fine, whereas emojis with 5-character codepoints do not, but at a glance I'm not sure why this would be the case 😕 |
Putting
on the page on my site (copied from mkdocs-material's homepage) results in:
👍 Putting
👎 But that solves my mystery of why that one emoji worked for you. So I can reproduce this on your docs too now. Adding Edit: Seems to come down to the alt-text. Replacing "Tada" with "🎉" stops it from working. |
I just tested the emojis you linked, all working. Excerpt from the debug log:
All files were correctly downloaded:
I'll check if I can recreate your reproduction using |
Nope, perfectly works for me. Can you please delete the |
As an addendum, I just grepped through the documentation built with Insiders, all good:
|
I don't know if privacyguides/privacyguides.org#2063 is the exact same issue I was having here before, but this isn't working for me, and I have a separate minimal install where this isn't working with just these two files: Archive.zip (just these two files:)
|
Thanks for providing the reproduction, I'm seeing the same error. We recently fixed #5077, released as part of 9.0.14+insiders-4.32.1, which might now be causing this issue. Does it also happen if you use 4.32.0? Reopening for investigation. |
Or wait, no. We shouldn't repurpose this issue. Could I ask you to create a new one please? This was the initial change request, we now have a bug that only happens for certain types of assets. Thus, a new issue should be created. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
With the privacy plugin enabled, the src for emojis points to twemoji.maxcdn.com.
Expected behaviour
I would expect Twemoji SVGs to be downloaded and bundled with the site:
Actual behaviour
With the privacy plugin enabled, references to emojis are inserted as images with a source pointing to MaxCDN.
Steps to reproduce
!!python/name:materialx.emoji.twemoji
emoji index.privacy
plugin.Package versions
Configuration
System information
The text was updated successfully, but these errors were encountered: