javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 70 forks source link

Links within admonitions do not appear connected on mind-map #244

Closed wkmaiday closed 1 year ago

wkmaiday commented 2 years ago

Any links within the admonition itself does not end up linking appropriately on the mind map - however the link still works. More of a QoL issue than a utility one.

Einspieler19 commented 2 years ago

All links in [[]] form don't work. Is is possible to tackle that?

nosas commented 1 year ago

This is a utility issue when locating and updating backlinks. Obsidian has a nice feature where it updates the backlinks when a note's name is changed (called "Automatically update internal links"). The feature does not work for links located within admonitions.

I'll provide an example to clarify the issue: I have a file named "search algorithm properties". This file is linked within admonitions in four other files. There are now three issues:

  1. Obsidian shows the file has 0 linked mentions (no backlinks found). Instead, the links are shown in the "Unlinked mentions" section. This issue cascades into the following two problems.
  2. Obsidian's "Automatically update internal links" does not work upon changing the filename.
  3. Obsidian's graph view does not show links between the five files (as mentioned in OP).
image
valentine195 commented 1 year ago

This is an unfortunate side effect of Admonitions being a code block. Obsidian does not parse code blocks for its cache, which includes links and tags.

If you need this function, you can use a native callout - it works in them!

nosas commented 1 year ago

Darn, I just read through the Obsidian forums and found the same result: they do not support links in code blocks. For future reference, usage of native callouts can be found here: https://help.obsidian.md/How+to/Use+callouts

Thanks for the quick response, Valentine 👍

EDIT: I should also note that Admonitions has a button to convert all admonition Code Blocks to Callouts :) Saves me a lot of time.

image