Skip to content

stripHeadingForLink

stripHeadingForLink(heading): string

Defined in: obsidian.d.ts:3987

Prepares headings for linking by stripping out some bad combinations of special characters that could break links.

string

string

stripHeadingForLink(heading): string

Defined in: src/obsidian/augmentations/functions.d.ts:752

Prepares headings for linking by stripping out some bad combinations of special characters that could break links.

string

The heading to prepare.

string

The prepared heading.

console.log(stripHeadingForLink('foo:#|^\\\r\n%%[[]]bar')); // foo bar