Embed text from another note

What I’m trying to do

I am trying to embed text from one note into another inline

As an example:
home_router.md contains the line 192.168.1.1
I can link to this using ![[home_router#192.168.1.1#^fk393]]

This links to the document and shows the ip but on a new line.

What I would like is for it to be mid line e.g. This is the routers ip: 192.168.1.1

Is this possible?

The short answer is no.

The longer answer is, you might be able to do it with a CSS snippet, but probably with side effects. Like, you could make all callouts inline, or all callouts in any note that has a certain class assigned to it (using the “cssclasses” property).

Murf had a very complicated snippet for inline block references, but it unfortunately stopped working from Obsidian v1.1.x onward.

https://gist.github.com/GitMurf/46c9ae78d6c3ce53d42d7832c7601271

Perhaps one of the wizards in Discord could fix it, but it seems like a lot of work. :cold_sweat:

If you just want short snippets of text, like an IP address, you could consider using dataview and fields.

Given something like ip: 192.168.1.1 in the frontmatter of a file named “MyData” (which of course can be whatever name you want), you could use `$= dv.page("MyData").ip ` in your current file to retrieve that information.

Interesting. Thanks @holroy, I think this might be the easiest to implement with the fewest drawbacks.

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