mProjectsCode/obsidian-meta-bind-plugin

Buttons break on the sidebar / in embed

NomarCub opened this issue · 2 comments

Please fill out these Check-boxes

  • I checked that the plugin is up to date
  • The issue persist with all other plugins and themes disabled

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Plugin Version

1.1.2

Describe the Issue

I have buttons on the sidebar, that are embedded from another note.

The sidebar note that embeds them says Button ID not found, until I open the note that the button is from (A), then it appears normally

Animation

The font on the embedded note is some code type, instead of the regular font on the original button.

image

Steps to Reproduce

Note A:

```meta-bind-button
label: restart
style: primary
id: restart
actions:
  - type: command
    command: app:reload
```

`BUTTON[restart]` ^buttons

![[#^buttons]]

Note B:

![[A#^buttons]]

Expected Behavior

The embed should find the ID, and the font styles should match.

This is expected. The section of the note containing the button code block needs to be loaded for the inline button to be able to find it.

I get that this is expected for you, but it's a pretty big limitation.

And more importantly, it breaks Obsidian's usual embedding / transcluding logic and user intuitions, and it's difficult to work around.
I tried moving from the Buttons plugin to this one, as it's author recommended. This situation works there perfectly, I don't know why it couldn't work here.