Embedded heading should show nothing when heading is not present in embedded note instead of showing the whole note's content

Steps to reproduce

  • create a note “note1” with a heading e.g. # Work Log with some paragraphs, another heading # Activities, # habits
  • create a second note “note2” without a # Work Log heading in it, but just other headings like # Activities, # habits
  • create a third note where you embed note1 and note2 like this:
    ![[note1#Work Log]]
    ![[note2#Work Log]]

Expected result

![[note1#Work Log]] --> shows only what is underneath # Work Log
![[note2#Work Log]] --> as there is no “Work Log” heading, show nothing

Actual result

![[note1#Work Log]] --> shows only what is underneath # Work Log
![[note2#Work Log]] --> shows the whole note

Environment

  • Operating system: Windows
  • Obsidian version: 0.8.2
  • custom css : yes
3 Likes

This is not bug per se. More a feature request. If there is not subsection what do you do? Show nothing or show the whole note? I don’t know. I don’t have a problem with either.
I am going to archive this. Open a discussion in Obsidian or feature request to discuss about this.

1 Like