|
|
@ -30,18 +30,6 @@ func Test_Extract_Link(t *testing.T) {
|
|
|
|
{name: "wikilink^blockRef|display name|second pipe", in: "[[wikilink#^blockRef|display name|second pipe]]", expected: "wikilink"},
|
|
|
|
{name: "wikilink^blockRef|display name|second pipe", in: "[[wikilink#^blockRef|display name|second pipe]]", expected: "wikilink"},
|
|
|
|
{name: "wikilink with numeric aliases^blockRef|420|second pipe", in: "[[wikilink#^blockRef|420|second pipe]]", expected: "wikilink"},
|
|
|
|
{name: "wikilink with numeric aliases^blockRef|420|second pipe", in: "[[wikilink#^blockRef|420|second pipe]]", expected: "wikilink"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"[[#^blockRef]]"
|
|
|
|
|
|
|
|
"[[wikilink#^blockRef]]"
|
|
|
|
|
|
|
|
"[[wikilink#^blockRef|display name]]"
|
|
|
|
|
|
|
|
"[[wikilink#^blockRef|display name|secondpipe]]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"[[#^blockRef]]"
|
|
|
|
|
|
|
|
"[[wikilink#^blockRef]]"
|
|
|
|
|
|
|
|
"[[wikilink#^blockRef|display name|secondpipe]]"
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for _, tc := range tcs {
|
|
|
|
for _, tc := range tcs {
|
|
|
|
tc := tc
|
|
|
|
tc := tc
|
|
|
|