Skip to main content

Space-delimited tags?

Comments

1 comment

  • theofrancis

    OK, so I went back through many old posts about tags and metadata, and I have learned:

    1. MMD does indeed seem to require comma-delimiting in the metadata tags line, per [this response from Fletcher a while ago](https://multimarkdown.zendesk.com/hc/en-us/community/posts/360036182693/comments/360009053114):

    > You use the MultiMarkdown metadata `tags:`, but then have a single string of terms with no commas. From a MultiMarkdown perspective this is a single long tag `#ios13 #apple_tutorial #geplant #41KW19`.  Those terms are then parsed separately as in text tags (since they each start with `#`).  If you want to include them all as `#foo` style tags, you should not include them as MultiMarkdown metadata.

    2. In addition, from [my read of this exchange](https://multimarkdown.zendesk.com/hc/en-us/community/posts/360035426793/comments/360009216353), a string preceded by a hashtag is interpreted as a tag in nvUltra, but treated slightly differently in the metatadata. 

    > You don’t need hash tags in tag metadata. Only if you’re putting a tag randomly in the body of a note outside of the metadata. So in this case your tag is being read twice - once as the metadata tag “#tag” and once as a random tag “tag”.

    So `#abc` is treated as an instance of the tag `abc` anywhere in a note. However, in the metadata, anything after the `tag:` keyword is treated as a tag (or comma-separated list of tags); so `abc` is treated as an instance of the tag `abc` — but `#abc` is treated as an instance of the tag `#abc`.
     
    I get the reason for the distinction — there's no reason to label something as a tag when it's part of a tag list in metadata, whereas everywhere else you need some way to indicate that you're using a tag. However, given that nvUltra makes it possible to add a tag in a note both ways, it might be a good idea to make this clear in the documentation. Maybe an additional line like so:
     

    > ## Tagging[¶](https://nvultra.com/help/tagging-and-metadata#tagging)

    > Tags, as shown in the example above, are specified with a `tags:` line of metadata. This key can contain a comma-separated list of tags.

    > Tags can also be specified inline in your document using hashtags (`#tag`). These will be searchable as tags, but not synced to the filesystem.

    > *If you use a `#` symbol in front of a tag ini the `tags:` line of metadata, the `#` symbol will be part of the tag. Elsewhere, the `#` will not be retained as part of the tag.*

     

    I'd still love to be able to specify space-delimited tags in the metadata, but I realize that's unlikely.

     

    0

Please sign in to leave a comment.

Powered by Zendesk