Skip to content

Inline button with hidden YML block renders an error in reading mode #207

@AmmarCodes

Description

@AmmarCodes

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

0.12.0

Describe the Issue

When adding an inline button and add its YAML definition with hidden: true property, it will render an error in the place of the YAML definition, clicking that definition will show the attached modal about having duplicated ID that already exists.

image

Steps to Reproduce

  • Create a new file
  • Paste the following code block (copied over from the docs site):
Meta Bind has an in plugin help page. `BUTTON[help-button]` Isn't that cool?

```meta-bind-button
style: primary
label: Meta Bind Help
id: help-button
hidden: true
action:
  type: command
  command: obsidian-meta-bind-plugin:open-faq
```

Open the page in reading mode and observe the error.

Expected Behavior

The expected behavior is to not render the error instead of the YAML definition but render nothing if there's no real issue.

P.S. Thanks for the great plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions