<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`parseLinktext`](parseLinktext) ## parseLinktext() function Parses the linktext of a wikilink into its component parts. **Signature:** ```typescript export function parseLinktext(linktext: string): { path: string; subpath: string; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>linktext</code> | <code>string</code> | A wikilink without the leading \[\[ and trailing \]\] | **Returns:** `{ path: string; subpath: string; }` filepath and subpath (subpath can refer either to a block id, or a heading)