Skip to content

obsidian/functions/stripHeadingForLink

Mock of Obsidian’s stripHeadingForLink.

Function Description
stripHeadingForLink Prepares a heading for use in a link by removing characters that would break it. The mock strips the leading # markers and the whitespace after them, then removes every [, ], |, #, ^ and \.