I haven’t been able to find another FR for this, but I think transclusions go by a few other names so perhaps my searching simply hasn’t found an already brilliant FR for this.
I would like to be able to rename the header in header-linked transclusions to improve the ‘flow’ of reading my notes. Similarly I would like to be able to entirely hide the header. This could be achieve ergonomically and intuitively using the pipe operator in the transclusion link.
Proposed solution
Allow transclusions linked to headers to rename or hide the header using the pipe operator in the link.
I suggest that it should have My title instead of A header as the title in the transclusion.
Similarly one should be able to hide the title using:
![[A note#A header|]]
Further, block-links (those given by ^link-name) could be given titles using:
![[A note#^a-tag|My title]]
This currently renders as just the block content:
I personally think this would be a great addition to the already powerful transclusion system and fits well with the existing grammar of links and transclusions.
Not a complete solution, but I finally figured out a workaround to at least hide the header/title using CSS, which annoyed me the most. I shared it here.
Would also love to see this feature implemented though, using the pipe operator here just makes sense!
The reason I want this is because I want to have a functioning outline in both the source and the destination note.
So the way I’m doing it is:
`# Heading`
`![[source note#heading-in-souce-note]]`
This entails that I can use the outline function in Obsidian to quickly jump to the “Heading” in my destination note. If only embedding, then the embedded text’s header isn’t included in the outline of my destination note.
My current workaround is having a CSS snippet that removes ALL headings from embedded headings. It works okay for me since I always duplicate the heading in my destination note anyway, but it seems odd that a simple comment / toggle / symbol in the syntax to disable the heading (or even to treat it like its own heading) for embedding doesn’t exist.