Include the value of the `tags` property in the HTML/DOM

Use case or problem

I have some duplication between tags and cssclasses properties. In my case, I have both tags: quote and cssclasses: quote. Obviously, the tags value is for organization, and the cssclasses is for styling the content of the body (which is a quotation). The cssclasses feels redundant in this case, and it would be nice to be able to create a custom CSS snippet based solely on tags: quote property.

Proposed solution

Generate some kind of HTML attribute based on tags, not just cssclasses. For example:

  • class="foo bar" (no distinction with cssclasses)
  • class="tags-foo tags-bar" (tags- prefix to make it more distinct from cssclasses)
  • data-tags="foo bar" (fully separate from class but still selectable in CSS)

Current workaround (optional)

I don’t know of a workaround that doesn’t require an extension.

Related feature requests (optional)