generateMarkdownLink doesn't escape titles

Steps to reproduce

  1. Disable Use [[Wikilinks]] setting
  2. Invoke app.fileManager.generateMarkdownLink(file, sourcePath, null, "[]")

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

[\[\]](path/to/file.md)

Actual result

[[]](path/to/file.md)

Environment

SYSTEM INFO:
	Obsidian version: v1.7.0
	Installer version: v1.6.5
	Operating system: Windows 11 Pro 10.0.22631
	Login status: logged in
	Catalyst license: vip
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Additional information

It seems the following characters has to be escaped &<>[]\_*

moved to developer and api

1 Like