mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
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.
This commit is contained in:
parent
e37af0b073
commit
bb340f1272
Notes:
sideshowbarker
2024-07-17 20:27:14 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/bb340f1272e Pull-request: https://github.com/SerenityOS/serenity/pull/12077 Reviewed-by: https://github.com/BenWiederhake ✅
@ -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<size_t> last_hash = href.find_last('#');
|
||||
|
Loading…
Reference in New Issue
Block a user