(live preview) Extra bracket in external links when the link text has a bracket itself

Steps to reproduce

In the live preview mode, add an external link and include a bracket in the link text:
[test [2]](https://example.com)

The preview link will include brackets outside the whole link:

Source mode:
image

Live preview:
image

In the example above, the “test [2]” also is not clickable (clicking on the text doesn’t open the link).

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

Y

Expected result

Actual result

Environment

SYSTEM INFO:
	Obsidian version: v1.6.3
	Installer version: v1.4.13
	Operating system: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:27 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8103 23.3.0
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 1
	Restricted mode: on

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

Additional information

2 Likes