Live Preview: Link text and Link label separated by space shouldn't be parsed as reference link

Steps to reproduce

In Live Preview mode, paste the following content:

[link text] [link label]

Expected result

The [link label] should not disappear:
image

Actual result

The [link label] disappeared because it is parsed as reference link:
image

Environment

  • Operating system: Windows 10
  • Debug info:
SYSTEM INFO:
	Obsidian version: v1.0.3
	Installer version: v1.0.3
	Operating system: Windows 10 Pro 10.0.19043
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

Both CommonMark (CommonMark Spec) and GitHub Flavored Markdown (GitHub Flavored Markdown Spec) specify that

No spaces, tabs, or line endings are allowed between the link text and the link label

This issue also affects those who are using Dataview’s inline fields: Adding Metadata - Dataview

Some text [key:: value1] [key:: value2] more text

will be rendered as:
image

1 Like

Steps to reproduce

- [engineering] [README](../../../../../inbox/README.md)
# or any of the following format
- [topic] [title](url)
# note the space between two bracket-ed text

Expected result

This is a screenshot from the Reading view, which is the correct / expected rendering

image

Actual result

This is a screenshot from the Live Preview editing view, with cursor focused elsewhere so that the line is rendered live. Note that the text in the second bracket is missing, while the link was added to the first text.

Environment

Reproducible under the Help Sandbox vault

  • Operating system: macOS
  • Debug info:
SYSTEM INFO:
	Obsidian version: v0.14.5
	Installer version: v0.13.30
	Operating system: Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101 21.4.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Minimal
	Snippets enabled: 1
	Safe mode: off
	Plugins installed: 28
	Plugins enabled: 21
		1: Advanced Tables
		2: Calendar
		3: Quick Switcher++
		4: Natural Language Dates
		5: Custom window title
		6: QuickAdd
		7: Admonition
		8: Excalidraw
		9: Minimal Theme Settings
		10: Advanced URI
		11: Dataview
		12: Diagrams
		13: Style Settings
		14: Open vault in VSCode
		15: Local images
		16: Global Hotkeys
		17: Templater
		18: Citations
		19: Meld Encrypt
		20: Obsidian42 - BRAT
		21: Hover Editor

RECOMMENDATIONS:
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.


Additional information

According to the CommonMark spec, the [topic] should never affect the linked text after that.

Any updates on this bug? Still able to reproduce this in latest version.