Expand links

  • I would like to expand the links with the content from the link when I am exporting the file.
  • I would also like the option to “pick and choose” which links I want to expand with the content from that file and which links I wish to keep (but strip away the link syntax).

That could be a good idea for a commmunity Obsidian extension.

As you probably know, you can embed the contents of a link by adding an exclamation mark before the link. For now, you must manually add exclamation marks or remove links (remove [[ and ]].

  • You could do that on a copy (In the command palette: “Make a copy of the current file”).
  • Then, a Search [[ Replace with ![[ will convert all links to embedded content.
  • You would then manually need to remove ![[…]] for links that you want to remove.

Because Obsidian works with plain text files, one can use an external text editor or scripts to automate some aspects.

1 Like

Yes I agree that this fits well as an obsidian plugin. I have added it as a feature request to the enhancing export plugin: FR: Expand Links · Issue #212 · mokeyish/obsidian-enhancing-export · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.