"Extract this heading" on header containg link creates file with "illegal" characters

Steps to reproduce

  • Create File
# [[Lorem Ipsum]]
# Lorem|Ipsum|dolor
# Lorem#Ipsum
  • Use “Extract this heading” on each heading
  • Don’t edit default new file name

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

Yes

Expected result

  • New file Lorem Ipsum.md is created, when header contains link.
  • Error is show when exporting header Lorem|Ipsum|dolor and Lorem#Ipsum

Actual result

  • New file [[Lorem Ipsum]].md, Lorem#Ipsum.md and Lorem|Ipsum|dolor.md are created.
  • Link in parent note is broken.

Environment

SYSTEM INFO:
	Obsidian version: v1.5.8
	Installer version: v1.5.8
	Operating system: #1 SMP PREEMPT Fri Jan 5 16:20:43 UTC 2024 5.15.146-1-MANJARO
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

  • Headers with /and seams to work fine - file will not be created and application will show error.