Embedded Headers should be relative to master note

Use case or problem

If we embed a file within a subsection of a note, heading hierarchies makes no sense and looks terrible.

For example, if we have a note with favorite coffee shops cafe.md

# Cafe 1
## Review
## Location
# Cafe 2
## Review
## Location

And I write a note that’s a city guide city guide.md with an embedded reference to cafe.md

# City
## Things to do
### Cafes
![[cafe.md]]

Then city guide.md will look like

# City
## Things to do
### Cafes
# Cafe 1
## Review
## Location
# Cafe 2
## Review
## Location

But it should look like

# City
## Things to do
### Cafes
#### Cafe 1
##### Review
##### Location
#### Cafe 2
##### Review
##### Location

Proposed solution

There should be an option to display embedded headings as relative to the main document

Current workaround (optional)

It’s possible to structure cafe.md with lower headings. But this only works once and sort of defeats the concept of “write once use many” with transclusion. What do you do when it needs to be embedded in yet another note with a different heading structure?

Visual of what happens below

The cafe’s become the same level as the city (organizational hierarchy is lost).


City

Things to do

Cafes

Cafe 1

Review

Location

Cafe 2

Review

Location


Visual of what we want below

Hierarchy is maintained


City

Things to do

Cafes

Cafe 1

Review
Location

Cafe 2

Review
Location
1 Like