Pictures display as x when importing from a site
Jump to navigation
Jump to search
Problem
When I import from this site: https://www.zhihu.com/question/58383619/answer/2228785233
All pictures show as x. They are not visible.
Answer
Yes.
The quoted site uses the data-actualsrc
attribute to store the actual source URL of the image. This is a custom data attribute that some websites use for various purposes, such as lazy loading, image resizing, or image protection. SuperMemo might attempt to retrieve the image data from this attribute, however:
- It is unclear if it might expose the user to some malicious code, as the data-actualsrc attribute could contain encrypted or obfuscated image URLs that need to be decrypted or deobfuscated by JavaScript code
- This is one of a dozen exceptions that may need to be handled in future updates to SuperMemo. Those exceptions will be prioritized by frequency, i.e. how often they make imports difficult
In the meantime, you can get those images when needed by following the original link in SuperMemo references and using copy and paste.