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://')) {