Skip to content

hasEmbedSyntax

Tests whether a link is an embed link: ![[link]], ![title](link).

Import:

import { hasEmbedSyntax } from 'obsidian-dev-utils/obsidian/link';

Signature:

function hasEmbedSyntax(link: string): boolean

Parameters:

ParameterTypeDescription
linkstringLink to test

Returns: boolean — Whether the link is an embed link


Links to this page: