Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Icon show next to icon defined in Front Matter #634

Open
pflenker opened this issue Dec 29, 2024 · 0 comments
Open

Default Icon show next to icon defined in Front Matter #634

pflenker opened this issue Dec 29, 2024 · 0 comments

Comments

@pflenker
Copy link

Describe the bug
If an icon is set via a custom rule and via the icon property in Front Matter, and if the document is linked using the title property in the front matter, then both icons - the custom rule icon and the one from the front matter - show up.

To Reproduce

  • Set up a custom rule in the plugin as described in the docs, matching .
  • Create a file, recipes/index.md.
  • Set the icon to 🍽️ via front matter, and set up the plugin to look at front matter for icons.
  • Set the title to "Recipes" via Front Matter

Steps to reproduce the behavior:

  • Link [[recipes/index.md|Recipes]]
  • Observe both icons showing up.

Expected behavior

  • only the icon defined in the front matter should show up.

Screenshots
image
image

Additional context

  • Omitting the link text or replacing it with something else makes it only show the correct icon:
image image

This looks related to this issue: #445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant