Skip to content

[Bug]: Non standard recognition of list types in YAML #697

@aubreyz

Description

@aubreyz

What's the bug?

As far as I know, for list elements, if there is only one element it is completely appropriate YAML to express them as

---
tags: tag1
---

or as

---
tags:
  - tag1
---

The same applies to projects (etc). Obsidian recognises both as a valid tag or project. However tasknotes ignores tags (and projects etc.) entered on a single line completely. This is fine if the tags and projects are processed via Tasknotes only, but becomes an issue if they are processed elsewhere (either manually, or via other plugins which manage properties).

What did you expect to happen?

Single line forms of properties which are lists should be recognised correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions