Fix absolute and relative without parent dir paths work

This commit is contained in:
Bel LaPointe
2019-11-21 12:28:30 -07:00
parent 9fc4e63a34
commit 3079cd163f
11 changed files with 59 additions and 9 deletions

View File

@@ -32,6 +32,12 @@ func TestNewPathFromLocal(t *testing.T) {
href string
local string
}{
{
in: "/wiki/wiki/b/a.md",
root: "/wiki/wiki",
href: "/notes/b/a.md",
local: "/wiki/wiki/b/a.md",
},
{
in: "/wiki/b/a.md",
root: "/wiki",