decaf-dev / obsidian-vault-explorer

Explore your Obsidian vault in visual format
https://vaultexplorer.com
MIT License
118 stars 4 forks source link

Header anchor appears as a tag #292

Closed decaf-dev closed 2 months ago

decaf-dev commented 3 months ago

Problem

When you have an internal embed to a markdown note with an header (a block reference or header link), the header will be processed as a body tag.

Expected behavior

Ignore the header anchor

Steps to reproduce

  1. Create a note with a level 1 header
  2. Create another note
  3. Make an internal embed with a reference to the header`![[note#header]]
  4. See the #header appear as a tag for the note file in all views
Moyf commented 3 months ago

Also found other situations: image image

Those text would also be recognized as tag: image

Maybe use [space]#xxx[space] (With whitespaces around) to detect tag ?


BTW, could you add a setting to switch on/off "Display the tags in body" ?

decaf-dev commented 3 months ago

@Moyf Thanks for posting that. I will fix this soon.

decaf-dev commented 3 months ago

@Moyf There should be a setting already. "Load tags from body". It was added several versions ago

decaf-dev commented 2 months ago

@Moyf Fixed in 1.41.1