From f6d4a4abd10dea3cb1da209aaa2a40292d9f2aeb Mon Sep 17 00:00:00 2001 From: Akos Balasko Date: Tue, 3 Oct 2023 23:11:58 +0200 Subject: [PATCH] fix: getting unique name fixed (#537) --- src/utils/turndown-rules/internal-links-rule.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/turndown-rules/internal-links-rule.ts b/src/utils/turndown-rules/internal-links-rule.ts index f60bd494..db0e3859 100644 --- a/src/utils/turndown-rules/internal-links-rule.ts +++ b/src/utils/turndown-rules/internal-links-rule.ts @@ -24,9 +24,9 @@ const isEvernoteLink = (value: string): boolean => { } const getEvernoteUniqueId = (value: string): string => { const urlSpl = value.split('/').reverse() - return (urlSpl[0] !== '') - ? urlSpl[0] - : urlSpl[1] + return ((urlSpl[0] !== '') + ? [urlSpl[0],urlSpl[1]] + : [urlSpl[1],urlSpl[2]]).join('/') } export const wikiStyleLinksRule = { filter: filterByNodeName('A'),