You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pandoc with the include-files filter a document in a subdirectory of the root ./sub/a.md that includes a relative file path, say
```includesubsub/b.md```
where b.md has path ./sub/subsub/b.md, the filter cannot find the file. It works if I use the path relative to the root, i.e.,
```includesub/subsub/b.md```
This is a problem for me because I want to include a.md in multiple documents that don't share the same root.
I think there are two solutions:
include an option to turn off relative paths in includes (my preference) or
change the behavior for a top-level file ./sub/a.md (i.e., the one passed to pandoc) such that its includes are relative to its directory, ./sub.
I don't want to break existing code, so I think having an option to turn off all relative includes is probably best. I haven't tried editing the filter because I'm hoping others have input (or a solution!) for this. Thanks!
The text was updated successfully, but these errors were encountered:
If I
pandoc
with theinclude-files
filter a document in a subdirectory of the root./sub/a.md
that includes a relative file path, saywhere
b.md
has path./sub/subsub/b.md
, the filter cannot find the file. It works if I use the path relative to the root, i.e.,This is a problem for me because I want to include
a.md
in multiple documents that don't share the same root.I think there are two solutions:
./sub/a.md
(i.e., the one passed topandoc
) such that its includes are relative to its directory,./sub
.I don't want to break existing code, so I think having an option to turn off all relative includes is probably best. I haven't tried editing the filter because I'm hoping others have input (or a solution!) for this. Thanks!
The text was updated successfully, but these errors were encountered: