relative links in file system documents are not resolved correctly
g-pavlov opened this issue · comments
What happened:
A markdown in a document at //a.md for a relative link like [test](./b.md)
that is not in download scope gets resolved to [test](/<path>/a.md/b.md)
What you expected to happen:
The resolved path should be /<path>/b.md
instead
How to reproduce it (as minimally and precisely as possible):
- Create file a.md with content:
[test](./a.md)
- Create manifest like:
where
structure: - source: <path>/a.md
<path>
is path to the a.md file you created. - Invoke docforge with that manifest and inspect the results in a.md
You should observewhere[test](/<path>/a.md/a.md)
<path>
is path to the a.md file you created.