Skip to content

parseLinktext

Code location

parseLinktext(linktext): object

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