Skip to content

Feat: Generate URI in 'Source' to point directly to a block.#191

Open
zzhirong wants to merge 1 commit intoreuseman:mainfrom
zzhirong:main
Open

Feat: Generate URI in 'Source' to point directly to a block.#191
zzhirong wants to merge 1 commit intoreuseman:mainfrom
zzhirong:main

Conversation

@zzhirong
Copy link
Copy Markdown

Obsidian already supports URI to a block by block ID through the URI 'obsidian://open?file=file#^block_id'. Please note that the 'file#^block_id' part needs to be URI encoded. Therefore, the URI in the 'Source' field will be 'obsidian://open?file={file}%23%5E{block_id}'.

Obsidian already supports URI to a block by block ID through the URI
'obsidian://open?file=file#^block_id'. Please note that the
'file#^block_id' part needs to be URI encoded. Therefore,
the URI in the 'Source' field will be 'obsidian://open?file={file}%23%5E{block_id}'.
@becknik
Copy link
Copy Markdown

becknik commented Dec 1, 2025

Hey there, I know it has been a while, but I took inspiration from your PR and have just implemented it in my overhaul of this project.

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.

2 participants