diff --git a/Base/usr/share/man/man1/pmemdump.md b/Base/usr/share/man/man1/pmemdump.md index a8fbe15824..670b991a4d 100644 --- a/Base/usr/share/man/man1/pmemdump.md +++ b/Base/usr/share/man/man1/pmemdump.md @@ -35,4 +35,4 @@ offset fails. ## See also -* [`mem`(4)](../man4/mem.md) +* [`mem`(4)](help://man/4/mem) diff --git a/Userland/Utilities/markdown-check.cpp b/Userland/Utilities/markdown-check.cpp index fe93b0e865..0a681eac01 100644 --- a/Userland/Utilities/markdown-check.cpp +++ b/Userland/Utilities/markdown-check.cpp @@ -204,6 +204,11 @@ RecursionDecision MarkdownLinkage::visit(Markdown::Text::LinkNode const& link_no return RecursionDecision::Recurse; } if (url.scheme() == "file") { + if (url.path().contains("man"sv) && url.path().ends_with(".md"sv)) { + warnln("Inter-manpage link without the help:// scheme: {}\nPlease use help URLs of the form 'help://man/
//'", href); + m_has_invalid_link = true; + return RecursionDecision::Recurse; + } // TODO: Check more possible links other than icons. if (url.path().starts_with("/res/icons/"sv)) { auto file = DeprecatedString::formatted("{}/Base{}", m_serenity_source_directory, url.path());