From bb340f1272e4d2316d0285c664492ce6a0413fe5 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 22 Jan 2022 19:31:02 +0200 Subject: [PATCH] markdown-check: Ignore absolute icon paths We have no good way to handle these yet, and there's no point in forcing everyone to skip their pre-commit checks. --- Userland/Utilities/markdown-check.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Utilities/markdown-check.cpp b/Userland/Utilities/markdown-check.cpp index bebadc5e19..2bd2d3e344 100644 --- a/Userland/Utilities/markdown-check.cpp +++ b/Userland/Utilities/markdown-check.cpp @@ -167,6 +167,11 @@ RecursionDecision MarkdownLinkage::visit(Markdown::Text::LinkNode const& link_no outln("Not checking local link {}", href); return RecursionDecision::Recurse; } + if (href.starts_with("/res/icons/")) { + // TODO: Resolve relative to $SERENITY_SOURCE_DIR/Base/ + outln("Not checking icon link {}", href); + return RecursionDecision::Recurse; + } String label = StringCollector::from(*link_node.text); Optional last_hash = href.find_last('#');