Skip to content

testEmbed

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

Import:

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

Signature:

function testEmbed(link: string): boolean

Parameters:

ParameterTypeDescription
linkstringLink to test

Returns: boolean — Whether the link is an embed link