-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
paths using a tilde prefix not discovered with --self-contained #3135
Comments
The tilde expansion is done by the shell and varies from one shell to another. It doesn't seem any more appropriate for pandoc to expand |
Should there be some pandoc convention, though, for refering to $HOME? I have a single default bib file for all my academic writing, and I can't refer to it in YAML in a way that will work on both OSX and linux. I usually solve this by using a Makefile, which enters the bib as a command-line option. But in quick one-offs, it would be nice to refer to it in the YAML. Similarly, I can imagine there might be folks who want to use a resource in an image across multiple files (say, a company logo for letters) without copying it into each project dir. |
This might be intentional / by design, but wanted to log for posterity. Suppose we do have an image at the path
~/scratch/image.png
, and the following Markdown file:Attempting to call pandoc with this gives:
This example works fine with a full path rather than an aliased path. Any chance pandoc could do tilde expansion on paths for self-contained documents (replacing with the value of an environment variable, e.g.
HOME
(USERPROFILE
on Windows)?The text was updated successfully, but these errors were encountered: