-
-
Notifications
You must be signed in to change notification settings - Fork 194
Improve wikilink parsing and checking #1799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomas-zahner
merged 27 commits into
lycheeverse:master
from
JayJayArr:1788-spaced-wikilinks
Dec 23, 2025
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a543559
create fixture for whitespace wikilinks
JayJayArr 6311db0
implement directory walking for base-url
JayJayArr bf27508
implement indexing and lookup
JayJayArr 0f1228c
switch to Hashmap to resolve file names to pathes
JayJayArr 9762e07
feat: resolve Filenames through wikilink checker
JayJayArr cc4630d
fix: exclude fragments
JayJayArr 91fa1ed
Apply suggestions from code review
JayJayArr da50cb8
tie --include-wikilinks to --base-url
JayJayArr 62a69c1
update return values for Wikilink checker
JayJayArr f4b0600
refactor: wikilink cleanup
JayJayArr 070b7b2
feat: WikilinkChecker as optional
JayJayArr c95c765
Apply suggestions from code review
JayJayArr 166b870
refactor: WikilinkResolver in own module
JayJayArr fcb8716
Apply suggestion from @mre
mre 27b2787
Apply suggestion from @mre
mre b74cb5e
Apply suggestion from @mre
mre 93ea466
Apply suggestions from code review
JayJayArr b67a579
WikilinkResolver base non-optional
JayJayArr 3a42e9f
refactor: move WikiLink cleaning to WikiLink Module
JayJayArr 3b390f3
fix type
JayJayArr 8f9c107
Error handling for invalid base
thomas-zahner d3bac8d
Apply suggestions from @thomas-zahner
JayJayArr 335beb7
Improve Error Handling for WikilinkNotFound
JayJayArr dfeab26
Check for Unsupported Characters in Wikilinks
JayJayArr 2afa74b
Remove Unsupported Character Check
JayJayArr 9824dbe
Test for WikiLinkNotFound
JayJayArr 0c3dcb5
Simplify WikilinkIndex
thomas-zahner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Links to non-existing Files | ||
|
|
||
| [[Does not exist]] | ||
| [[Doesn't exist.md]] | ||
| [[Does_not_exist]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [[#LocalHeader]] | ||
|
|
||
| # LocalHeader | ||
|
|
||
| [[Usage#Header|HeaderRenaming]] | ||
| [[Space Usage#Header|HeaderRenaming]] | ||
| [[Space Usage DifferentDirectory#Header|HeaderRenaming]] | ||
| [[DifferentDirectory#Header|HeaderRenaming]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [[Usage]] | ||
| [[Space Usage]] | ||
| [[Space Usage DifferentDirectory]] | ||
| [[DifferentDirectory]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| [[#LocalHeader]] | ||
|
|
||
| [[Usage]] | ||
| [[Space Usage]] | ||
| [[Dash Usage]] | ||
| [[Underscore Usage]] | ||
| [[DifferentDirectory]] | ||
| [[Different Directory Dash]] | ||
| [[Different Directory Underscore]] | ||
|
|
||
| [[Usage#Header|HeaderRenaming]] | ||
| [[Space Usage#Header|HeaderRenaming]] | ||
| [[Dash Usage#Header|HeaderRenaming]] | ||
| [[Underscore Usage#Header|HeaderRenaming]] | ||
| [[DifferentDirectory#Header|HeaderRenaming]] | ||
| [[Different Directory Dash#Header|HeaderRenaming]] | ||
| [[Different Directory Underscore#Header|HeaderRenaming]] | ||
|
|
||
| # LocalHeader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,4 @@ | |
| pub(crate) mod file; | ||
| pub(crate) mod mail; | ||
| pub(crate) mod website; | ||
| pub(crate) mod wikilink; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.