Display Tags as #hashtag list in each tiddler

Is there an error in this code?

I imported a list of tiddlers. They show up correctly with their tags in yellow.

But, I would like to also display the tags inside the text area as a list of #hastags

Asked Google Gemini but for the last hour have been unable to get it to work

<!-- Display Tags as #hashtag list -->
<div class="tc-tags-list">
  <$list filter="[all[current]tags[]]">
    <span class="tc-tag-hashtag">
      #<$view field="currentTag"/>
    </span>
  </$list>
</div>

This is not correct. There is no “currentTag” field. There are also no CSS classes named tc-tags-list or tc-tag-hashtag. To show the hashtags, you can just write:

<$list filter="[all[current]tags[]]" variable=thistag>
#<$text text=<<thistag>>>
</$list>

enjoy,
-e

2 Likes