When using the section embed feature (![[Note#Header]]) to transclude a specific header section, the embed fails to render correctly if the targeted section contains a dataviewjs (or javascript / js) code block. The transclusion breaks the embed viewport.
Steps to Reproduce
1.Create a source note named Source Note.
2.Inside Source Note, create a heading and insert a dataviewjs code block under it:
text:
My Target Section
Some text here.
dv.paragraph("This is dynamically rendered content.");
---
3.Create a second note named Destination Note.
---
4.In Destination Note, try to embed the specific section using Sync Embeds:
text:
![[Source Note#My Target Section]]
---
5.Observe the embedded block in Destination Note.
---
Expected Behavior
The embedded block should only display the content under ## My Target Section, including the rendered output of the dataviewjs block, while keeping the section boundaries intact.
Actual Behavior
The section boundary detection seems to break.
Environment Context
OS: macOS
Obsidian Version: 1.12.4
Sync Embeds Version: Sync Embeds v2.0.1
Dataview Version: 0.5.68
When using the section embed feature (![[Note#Header]]) to transclude a specific header section, the embed fails to render correctly if the targeted section contains a dataviewjs (or javascript / js) code block. The transclusion breaks the embed viewport.
Steps to Reproduce
1.Create a source note named Source Note.
2.Inside Source Note, create a heading and insert a dataviewjs code block under it:
text:
My Target Section
Some text here.