Right asterisk shows in live preview

Steps to reproduce

Put this in a note: *https://google.com*

See live preview display the right * despite the cursor being elsewhere.

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

Expected result

https://google.com

Actual result

https://google.com*

Environment

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

RECOMMENDATIONS:
none


Additional information

MacOS too. Also ** and *** and __ and ~~

Can confirm as @rigmarole mentioned for MacOS, that same on Windows and iOS. So, maybe it’s a feature and not a bug :thinking: :wink:

Also happens on Linux, but I don’t think it’s a feature because it doesn’t appear in Reading mode.

It occurs in combinations of https:// and a domain .com, .org, etc. so my guess is that Live Preview needs those elements to recognize something as a link and then doesn’t know where the URL ends.

Is possible to make a link explicit with angle brackets, and the formatting then works:

*<https://google.com>* 

_[https://google.com](https://google.com)_

*[https://google.com](https://google.com)*

CommonMark Spec > Autolinks

And if italicized text is wanted without the link, it can be escaped:

*https:\//google.com*  
2 Likes

It looks like a nice and good solution to avoid a bug :ok_hand: :slight_smile:

1 Like