Skip to content

getNewLinkFormat

Retrieves whether to use relative links based on the Obsidian settings.

Import:

import { getNewLinkFormat } from 'obsidian-dev-utils/obsidian/obsidian-settings';

Signature:

function getNewLinkFormat(app: App): NewLinkFormat

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.

Returns: NewLinkFormat — Whether to use relative links.