Skip to content

parseLinktext

parseLinktext(linktext): object

Defined in: obsidian.d.ts:3007

Parses the linktext of a wikilink into its component parts.

Parameters

linktext

string

A wikilink without the leading [[ and trailing ]]

Returns

object

filepath and subpath (subpath can refer either to a block id, or a heading)

path

path: string

subpath

subpath: string