Skip to content

Conversation

@shminge
Copy link
Contributor

@shminge shminge commented Sep 1, 2025

Fixes #593.

I have removed the file pathname check from string-utils.ts as it was mangling links with heading fragment like https://borretti.me/article/two-years-of-rust#perf into the invalid form https://borretti.me/article/#perf. Many links do not end with a / and yet are not files, so this seemed like misguided truncation.

I've also added a replacement that automatically converts urls containing heading links to the current (being clipped) page into proper Obsidian [[#heading|title]] links. Unfortunately, this isn't quite perfect (see comments) but it will function perfectly on almost every website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heading links in page are not converted

1 participant