Images Not Showing / Catalina / Permissions
My markdown documents are on my iCloud.
Everything was working fine - when opening a markdown file a dialog would open asking for Marked 2 to be given permission to access the file. Although a little irritating Catalina feature if the root drive was selected and permission granted then it didn't need to be repeated whilst Marked 2 was running.
Now.
There is never a request to give marked 2 permission to access a document on iCloud. It appears to have access to Documents (under Preferences | Security & Privacy | Files and Folders | Marked 2) but I cannot change this other than uncheck 'Documents Folder' which appears to have no effect.
I have seen 2 different permissions-related effects.
- Opening a markdoen file on iCloud with file-includes. The includes show up as
Error: Format of file "file-include filename.md" is unrecognized
- Sometimes a simple 'Refresh' in Marked 2 would cure this. If it didn't then opening the included file in Marked 2, then refreshing the file with the file-includes would cure the problem.
I don't get asked to give permission to Marked 2 to access a document on iCloud. I still get the odd error which can be cured by a refresh as above. This previews the markdown text. The bigger problem is that none of the images show.
Inspecting the image shows an error in the Marked 2 HTML
Failed to load resource: The operation file:/// ... image path.png couldn’t be completed. Operation not permitted.
It isn't a markdown error - the image shows up as expected in Sublime Text using the Markdown Images package.
If I copy the files under Documents I get the permissions challenge and everything displays as expected. There is something about permissions and the iCloud drive that stops this behaviour. I can understand why a link to an image on a remote server might be a security risk but one's own iCloud drive ought not to do this.
Is there any way around this?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 18 Aug, 2020 01:47 PM
Is it safe to assume you're using the Mac App Store version? Permissions
with included files outside of the directory of the base Markdown file
get complex with sandboxing. Would you be interested in a free
crossgrade to the Paddle (non-sandboxed) version?
-Brett
2 Posted by nic on 18 Aug, 2020 05:05 PM
Yes. There’s little point in having a cloud-based set of docs that cannot this include images.
Is it the web browser? Similar thing seen in Firefox wrt https.
Support Staff 3 Posted by Brett on 18 Aug, 2020 07:43 PM
I'll send a license code for the Paddle version to the email account you
registered here.
Thanks,
Brett
Support Staff 4 Posted by Brett on 18 Aug, 2020 07:46 PM
In answer to your question about the browser, more or less, yes. An image included in the browser has to be accessible to the program directly, either via http or as a local file. In the case of local files, sandboxing restricts access to only files you have directly opened, not files that are simply referenced in another file. When you open a file in Marked, you're granting permission to use the file's parent folder, but anything outside of that folder (or above it in the tree) is still inaccessible via sandboxing permissions. Marked tries to scan for included files and determine whether it needs to ask for permission, but that has its limits.