Skip to content

Commit

Permalink
fix: getting unique name fixed (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Oct 3, 2023
1 parent 9f755aa commit f6d4a4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/turndown-rules/internal-links-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit f6d4a4a

Please sign in to comment.