Skip to content

obsidian/functions/stripHeading

Mock of Obsidian’s stripHeading.

Function Description
stripHeading Normalizes a heading for link matching, as Obsidian does: each character of !"#$%&()*+,.:;<=>?@^`\{|\}~/[]\, and each line break, becomes a space; runs of whitespace collapse to one space; and the result is trimmed.