From b59c091926db6b218a5e8eefc4cf2adfcef5124f Mon Sep 17 00:00:00 2001 From: Keming Date: Sun, 13 Aug 2023 21:34:11 +0800 Subject: [PATCH] fix scheme and remap Signed-off-by: Keming --- lychee.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lychee.toml b/lychee.toml index 4c4dbe1..a3a1682 100644 --- a/lychee.toml +++ b/lychee.toml @@ -1,3 +1,6 @@ -scheme = [ "file" ] +scheme = [ "https", "http", "email", "file" ] # remap the `mdx` file but exclude all the png/gif files -remap = [ '(?m)file://([/0-9A-Za-z\-]+)$ file://$1.mdx' ] +remap = [ + '(?m)file://([/0-9A-Za-z\-]+)$ file://$1.mdx', + '(?m)file://([/0-9A-Za-z\-]+)#([a-zA-Z0-9]+)$ file://$1.mdx#$2', +]