From ee09a0d4c5cfd448bb59ff37f502105f58372b2e Mon Sep 17 00:00:00 2001 From: Nicolas Endredi Date: Mon, 2 Mar 2026 03:05:55 +0100 Subject: [PATCH 1/2] Update OUTGOING_LINK_REGEXP to support pipe syntax Captures the alias of Obsidian links if it exists. e.g.: [[My note|A special note]] becomes A special note, if removeOutgoingLinkBrackets is activated. --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index ba2a326..80bac46 100644 --- a/src/config.ts +++ b/src/config.ts @@ -10,7 +10,7 @@ export const EMBED_METADATA_REGEXP = export const GFM_IMAGE_FORMAT = "![]({0})"; -export const OUTGOING_LINK_REGEXP = /(? Date: Mon, 2 Mar 2026 03:55:15 +0100 Subject: [PATCH 2/2] fix: update OUTGOING_LINK_REGEXP to capture in group named alias, inspired from ATTACHMENT_URL_REGEXP --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 80bac46..5edae91 100644 --- a/src/config.ts +++ b/src/config.ts @@ -10,7 +10,7 @@ export const EMBED_METADATA_REGEXP = export const GFM_IMAGE_FORMAT = "![]({0})"; -export const OUTGOING_LINK_REGEXP = /(?[^\]]+)\]\]/g; export enum OUTPUT_FORMATS { MD = "Markdown",