Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding metadata to a task breaks block references #79

Open
whatisaphone opened this issue Jan 30, 2024 · 0 comments
Open

Adding metadata to a task breaks block references #79

whatisaphone opened this issue Jan 30, 2024 · 0 comments

Comments

@whatisaphone
Copy link

Adding metadata to a task breaks block references. To fix, the block ID should remain at the end of the line, after the added metadata.

Repro

tasks.md:

- [ ] report bug ^a95049

journal.md:

today i did [[tasks#^a95049]]

At this point (1) Obsidian renders the block id in smaller text, and (2) if you click on the link, Obsidian will select the task. These behaviors indicate that the block ref is valid.

Now run the command "Toggle task done and archive it".

Actual result:

# Archived

- [x] report bug ^a95049 🔒 [[2024-01-30]] 🕸️ tasks

In journal.md, the link is now broken.

Expected result:

# Archived

- [x] report bug 🔒 [[2024-01-30]] 🕸️ tasks ^a95049

The block ID should remain at the end of the line.

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

No branches or pull requests

1 participant