Compare commits
No commits in common. "1b6441e03e5fcc1a4a8c51acf2481d50851b4fa5" and "6e717a8cf7c5aae19aa027d472fe16ab09dbda85" have entirely different histories.
1b6441e03e
...
6e717a8cf7
@ -431,7 +431,7 @@ extension Element {
|
||||
|
||||
// Find the common elements of the path, which can be discarded
|
||||
var index = 0
|
||||
while index < pageParts.count && index < ownParts.count && pageParts[index] == ownParts[index] {
|
||||
while pageParts[index] == ownParts[index] {
|
||||
index += 1
|
||||
}
|
||||
// The relative path needs to go down to the first common folder,
|
||||
|
@ -278,10 +278,7 @@ struct PageContentGenerator {
|
||||
results.warning("Invalid external link definition", source: page.path)
|
||||
return nil
|
||||
}
|
||||
guard let url = parts[0].trimmed.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
|
||||
results.warning("Invalid external link \(parts[0].trimmed)", source: page.path)
|
||||
return nil
|
||||
}
|
||||
let url = parts[0].trimmed
|
||||
let title = parts[1].trimmed
|
||||
|
||||
return (url, title)
|
||||
|
Loading…
Reference in New Issue
Block a user