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

Convert links to any material #4

Open
jdutant opened this issue Aug 5, 2021 · 0 comments
Open

Convert links to any material #4

jdutant opened this issue Aug 5, 2021 · 0 comments

Comments

@jdutant
Copy link
Collaborator

jdutant commented Aug 5, 2021

A document can hyperlink to files of any type. When links have relative targets, we need to make sure that they're correct in the resulting document. What are the options?

  1. Mimick pandoc's behaviour. Let the source files relative links as they are.
  2. Adjust to make them relative to the master file directory.
  3. Adjust to make them relative to the present working directory.
  4. Adjust to make them relative to the output file directory.

3 is needed to make image inclusion in PDF/epub and extract-media work. We should cater to 1 in case the user is already entering the links with a specific root in mind. We might want to cater for 2 as it mimicks having writen a big master document directly with links relative to it. We might want to cater for 4 to ensure outputs work out

I suggest implementing 3 and 1. Users can achieve 2 and 4 by running pandoc from the master or output directory, respectively and relying on 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant