platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.24k stars 82 forks source link

Fix: Paste with a URL not Working Consistently #1158

Closed pjkaufman closed 2 months ago

pjkaufman commented 2 months ago

Fixes #1145

There was an issue with pasted text for list items and URLs not consistently being recognized as URLs. The problem seems to have been that we were looking for a URL anywhere in the pasted text. I looked into whether or not that was necessary for Auto Title Link and Paste URL into Selection, but neither of them seems to allow an https or file link just anywhere (I could have misread it though). This means that we should also be doing a similar check that the whole pasted logic is a URL before deciding to skip it.

Changes Made: