Skip to content

ParseLinkResult

A result of parsing a link.

Import:

import type { ParseLinkResult } from 'obsidian-dev-utils/obsidian/parse-link';

Signature:

export interface ParseLinkResult

Properties

PropertyTypeDescription
alias?stringAn alias of the link.
encodedUrl?stringAn encoded URL of the link.
endOffsetnumberAn end offset of the link in the original text.
hasAngleBrackets?booleanIndicates if the link has angle brackets.
isEmbedbooleanIndicates if the link is an embed link.
isExternalbooleanIndicates if the link is external.
isFileUrlbooleanIndicates if the link is a file:// URL.
isWikilinkbooleanIndicates if the link is a wikilink.
rawstringA raw link text.
startOffsetnumberA start offset of the link in the original text.
title?stringA title of the link.
unescapedAlias?stringAn unescaped alias of the link.
urlstringAn URL of the link.

Links to this page: