![[#block]] content with ^link formatting

What I’m trying to do

I’m trying to get the content of a block reference like ![[2023-08-23#Memos]] but have it formatted like a internal link ![[2023-08-23#^memo-link]]. So no header, and smaller presentation.

It’s an aesthetics question. Block references gather all the information I want, but I prefer the styling of the section links.

This is the code block as it is

- [[2023-08-23|Wednesday]]
![[2023-08-23#^memo-link]]

This is what is on my daily note for Wednesday 2023-08-23

## Memos
- 23:11 Made my first custom modifications to Memos! Very cool. #accomplishment
- 21:13 Get back into Obsidian
^memo-link

This is how it renders, with only the last bullet showing up.
image

Things I have tried

This is the formatting I’m trying to achieve, but each bullet is considered a unique section, so I only get the last bullet.

- [[2023-08-23|Wednesday]]
![[2023-08-23#^memo-link]]

This gets the content, but then I also get a big header and the text is larger. This is a minor part of the weekly template and needs to remain small.

- [[2023-08-23|Wednesday]]
![[2023-08-23#Memos]]

Same as the previous

- [[2023-08-23|Wednesday]]
![[2023-08-23#^Memos]]

I’m hoping one of y’all might be able to speed up my R&D. I’m still researching, but I’m now headed into topics that I am not familiar with, so the going gets slow because I have to learn as I go.

Any guidance would be appreciated.

My understanding is that a block of text or paragraph is transcluded in these cases. Never really tried it with lists, only blockquotes or normal text.

Sometimes I want the opposite: just a smaller portion of a longer text but I am reluctant to reformat the original text (I would need to break the flow of text by inserting an empty line; which I don’t want to do).

Put the ^memo-link on ## Memos
Block references take nested content underneath is as well
you can also do [[2023-08-23#Memos]] as it is an exposed heading

For linking to a list, have a look here for where to put the block / ref id:

The styling can be adjusted with CSS if the default embed styling isn’t to your taste.


You can also hide the ref id until hover in the source note or only show it if your cursor is on that line (in Live Preview), for example.

Left:

## Memos
- 23:11 Made my first custom modifications to Memos! Very cool. #accomplishment
- 21:13 Get back into Obsidian

^memo-link

Right:

- [[2023-08-23|Wednesday]] 
![[test1#^memo-link]]

And the CSS:

:not(.cm-active) > .cm-blockid {
  opacity: 0;
}

CleanShot 2023-10-21 at 04.32.01

https://help.obsidian.md/Extending+Obsidian/CSS+snippets

Another option is embedding the #Memos heading, but hiding it using https://publish.obsidian.md/slrvb-docs/ITS+Theme/Embed+Adjustments

- [[2023-08-23|Wednesday]]
![[test1#Memos|no-h]]

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