File Transclusion, Sandboxing, and relative paths

rwcope2's Avatar

rwcope2

12 Sep, 2017 03:10 PM

When I include a file from another directory using the {{ }} syntax, it works fine if I include the full path to the file (i.e.Composer asks for permission to open the file and successfully includes it). If the file is referenced with a relative path, however, it doesn't ask for permission and doesn't include the file.

For now, I can work around this by replacing the relative path with a full path, giving permission to access the file, and then replacing the full path with the relative path again. As long as it has permission, the relative path works, it just never asks for permission.

Thanks,
Rob

  1. 1 Posted by rwcope2 on 12 Sep, 2017 03:13 PM

    rwcope2's Avatar

    Sorry, forgot to mention I'm use Multimarkdown Composer 4.0 Beta (44).

  2. Support Staff 2 Posted by Fletcher on 12 Sep, 2017 04:30 PM

    Fletcher's Avatar

    Can you send an example? Relative paths work fine for me.

  3. 3 Posted by rwcope2 on 13 Sep, 2017 01:11 PM

    rwcope2's Avatar

    You're right, when I create a simple test case it works OK as well.

    Attached is a zip file containing the files I am using. It fails to read {{../Minutes%20Header.md}} referenced from the file XXX Draft Minutes.mmd. FWIW, the root folder has a ~ in the name, but it fails for me even without that.

    Thanks,
    Rob

  4. Support Staff 4 Posted by Fletcher on 13 Sep, 2017 01:18 PM

    Fletcher's Avatar

    Is the file really named "foo%20bar"? Or is it "foo bar"?

    Sent from my iPhone

  5. 5 Posted by rwcope2 on 13 Sep, 2017 01:49 PM

    rwcope2's Avatar

    It's "foo bar". I usually drag and drop files to include them and the paths are automatically URL encoded, so I leave them that way.

  6. Support Staff 6 Posted by Fletcher on 13 Sep, 2017 01:51 PM

    Fletcher's Avatar

    Drag and drop assumes images (which require URLs), since that is much
    more common than transclusion.

    Transclusion requires file names, since it is not part of HTML that
    requires URL encoding.

  7. Fletcher closed this discussion on 13 Sep, 2017 01:53 PM.

Comments are currently closed for this discussion. You can start a new one.

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