Improve wikilink parsing and checking
- [x] Extract the correct filename from a Wikilink by removing potholes and fragments
- [x] Create a new Checker for wikilinks, make it clear to the users that a base-url is required
- [x] Check Obsidian style wikilinks without headers
- [x] strip fragments & potholes from wikilinks
- [x] traverse the wiki-directory and check if any of the Filenames exist with any of the specified
--fallback-extensions
@jrfnl I am having trouble understanding the MediaWiki links with () and :.
Are there really markdown files named Help:Links or where do they point to?
Is [[Extension:DynamicPageList (Wikimedia)]] different to [[Extension:DynamicPageList]]
Could you please clarify this?
Guess you can rebase on top of master now to fix CI.
@JayJayArr, any chance you could fix the merge conflicts? I would love to get this great work merged. 😊
There we go. Lets call it okay for now :sweat_smile:
Apparently archive.org has some problems right now which breaks CI
Sorry, I've added a few more comments. But we're getting super close to finishing this work now. Hang in there. 🤩
Thanks for taking a look at the error handling here @thomas-zahner !
Added some more testcases for valid and invalid WikiLinks, if you still have any specific testcase in mind that we should check here please let me know. Added a check for unsupported characters as well :sweat_smile:
Added a Test from the cli and a Unit Test for the WikilinkResolver for this case. You did not miss it, it was indeed missing, sorry for the gap there!
@JayJayArr Thank you very much for the changes and the work, this really is a great addition. I've just removed a dbg! expression you probably forgot to remove and simplified indexing with 0c3dcb53295fbc255d7511d78724e055437de2b8.
@JayJayArr and everyone who reviewed and contributed to the discussion: thank you for working on this! I look forward to seeing this in the next release. 💞
Thanks to both of you @mre & @thomas-zahner for your support on this!