cristianvasquez / obsidian-prettify

A markdown prettifier for obsidian
GNU General Public License v3.0
129 stars 12 forks source link

Inline tags vs. Topic tags #90

Open zeeraktalat opened 2 years ago

zeeraktalat commented 2 years ago

It would be really useful to distinguish between inline tags and topic tags (i.e. tags that aren't in-line but are meaningful to the note for classification/linking/sorting). The primary issue is that the escaping with the '-marks mean that the tags don't appear in the tag list (and therefore don't get suggested etc.)

Right now, all tags are escaped by being written as

tags
  - '#inline-tag'
  - '#topic-tag'

which means that they don't appear in the tag-viewer (from what I can tell).

My suggestion is that the hashtag janitor only operates on tags in the actual note, not those in the metadata. This would allow for keeping inline tags but without losing linkability of topic tags

tags:
  - '#inline-tag'
topic tags:
  - #topic-tag

This would allow for tags to remain functional without duplication.

An alternative would be to follow the suggestion in #74 to simply remove the '-marks on tags.