The solution as @ZenMoto displayed it is a global solution, which would apply to every embedded file. In order for it to work it need to be placed in a CSS-file at a given location: vault/.obsidian/snippets/linkedNotes.css
where you can choose the filename as you see fit (the linkedNotes
part).
Sadly, this needs to be done outside of Obsidian, but any ordinary text editor will be able to create this file. Just make sure the extension is .css
and not anything else.
After you’ve created the file, you can go to the settings menu of Obsidian, and locate the bottom section of Appearance > CSS snippets, and you should see a linkedNotes
snippet, and here you can enable it. It should now work for every embed you do.
If you want to limit this behavior to some specific notes, you can do so in the embedding note, that is the file doing the embed, not the included note, and you can add something like the following at the start of that file:
---
cssClass: linkedWindow
---
If you then modify your css-file to look like this:
.linkedWindow .markdown-embed {
height: 100%;
max-height: 44vh;
overflow: scroll;
padding: 0 0 0 8px;}
.linkedWindow .markdown-preview-section {
max-width: 100%;
margin: 0 0 0 0;
}
That is add the .linkedWindow
in front of the other CSS selectors, this CSS will only apply to the file having that first part, and other embeds will be normal.
So a complete example of including the note with this syntax would be:
---
cssClass: linkedWindo
---
loads of text...
![[IncludeThisNote]]
more text
PS! Regarding loading just a block of text, using blockId’s, the correct link should be like ![[IncludeThisNote#^summary]]
(note the extra #
which I forgot in my previous post.