Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify relative link logic, removing unnecessary code
* Most of the logic is legacy from the very early HTMLProofer, and is irrelevant not since `@filename` can only be the file where the link is defined, with `File.join` properly handling both same-directory, nested, and parent links, together with the ultimate `File.expand_path` in `absolute_path. * The legacy logic comes pretty much from gjtorikian#6 and gjtorikian#23. * This way we can also avoid `File.exist`, which can ultimately be delegated to checking the existence, not constructing the path.
- Loading branch information