Skip to content
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

consider expanding Markdown image paths for Pandoc #1053

Closed
kevinushey opened this issue May 17, 2017 · 2 comments
Closed

consider expanding Markdown image paths for Pandoc #1053

kevinushey opened this issue May 17, 2017 · 2 comments
Labels
Won't Fix Indicates that work won't continue on an issue or pull request
Milestone

Comments

@kevinushey
Copy link
Contributor

kevinushey commented May 17, 2017

Currently, image links of the form

![alt](~/path/to/file.png)

won't be handled by Pandoc, as the ~ prefix is not expanded:

pandoc: Could not fetch ~/scratch/plot.png
~/scratch/plot.png: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 67

We might consider solving this with the use of a custom Pandoc filter, as described in http://pandoc.org/scripting.html

(previous discussion here: #1052)

@yihui yihui added this to the v1.7 milestone Sep 1, 2017
@yihui yihui added the Won't Fix Indicates that work won't continue on an issue or pull request label Sep 1, 2017
@yihui
Copy link
Member

yihui commented Sep 1, 2017

This would resolve #811, but since (1) it is typically a bad idea to use absolute paths (2) it is more of a Pandoc issue (3) Pandoc has no interest in "fixing" it (jgm/pandoc#3135) and (4) the fix is not trivial, my conclusion is that we will just educate users on a case by case basis when this problem arises.

@yihui yihui closed this as completed Sep 1, 2017
@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Won't Fix Indicates that work won't continue on an issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants