Linking the note name + section

What I’m trying to do

Hello,

I’m a relatively new to obsidian, and am having issues getting links working the way I would like them.

I am trying to get the note’s name and a specific section displayed. But anything I try ether just shows the section, or shows the note name and all of the sections defined in the note.

Is this behavior possible? I need the context of the note name in the link. The sections don’t seem to be multi line, I tried just repeating the note name without success.

As you noticed, Obsidian hides the note title (file name) when embedding to a specific heading or block ID.

One option is using a CSS snippet to automatically add the title (and heading/block ID) back in:

:is(.markdown-source-view, .markdown-preview-view)
.internal-embed:is([data-type="heading"],[data-type="block"])::before {
    content: attr(alt);
    font-weight: 600;
    padding-left: 1.5em;
}

1 Like

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