zolrath / obsidian-auto-link-title

Automatically fetch the titles of pasted links
MIT License
415 stars 55 forks source link

Square brackets in title #104

Open sir-stefano opened 5 months ago

sir-stefano commented 5 months ago

I inserted link to youtube video into my note, the video title contains square brackets []. As a result auto link title was unclickable. I deleted brackets, and then link became clickable.

Gif demonstration

Link from example — https://youtu.be/CxgOKJh4zWE

Maybe it is possible just prevent use [] inside auto title?

It would be great to have this problem solved. Thank you for amazing plugin!

zolrath commented 5 months ago

Oh hm, that feels like an Obsidian bug as the ['s are escaped with \[. Maybe it's expected behavior but that doesn't seem like the right handling by Obsidian to me.

Martin-Milbradt commented 2 months ago

The issue is the closing brackets ] not opening: image

Feature request: Add an option to replace square brackets with round ones. @zolrath: LMK if you want me to implement it.