From b38e19af77eaaa2621facb9dd36c51859b64031c Mon Sep 17 00:00:00 2001 From: Akos Balasko Date: Thu, 7 Sep 2023 15:26:49 +0200 Subject: [PATCH] fix: missing obsidiansettings --- src/utils/turndown-rules/internal-links-rule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/turndown-rules/internal-links-rule.ts b/src/utils/turndown-rules/internal-links-rule.ts index f1f6d3de..868bed0f 100644 --- a/src/utils/turndown-rules/internal-links-rule.ts +++ b/src/utils/turndown-rules/internal-links-rule.ts @@ -60,7 +60,7 @@ export const wikiStyleLinksRule = { // handle ObsidianMD internal link display name const omitObsidianLinksDisplayName = isHeptaOrObsidianOutput() - && yarleOptions.obsidianSettings.omitLinkDisplayName; + && yarleOptions.obsidianSettings?.omitLinkDisplayName; const renderedObsidianDisplayName = omitObsidianLinksDisplayName ? '' : `|${displayName}`; if (value.startsWith('evernote://')) {