Skip to content

IsTreatedAsAttachmentParams.attachmentExtensions

IsTreatedAsAttachmentParams › attachmentExtensions

Type: readonly string[]

The entries that mark a file as an attachment, e.g. ['.excalidraw.md', 'property:excalidraw-plugin'].

An extension entry is normalized before matching: surrounding whitespace is trimmed, a single leading dot is enforced, and the comparison is case-insensitive. Empty entries are ignored.

A property:name entry matches a markdown file whose frontmatter has name, and property:name=value one whose name renders as value — the same syntax note priorities use. It is evaluated only when app is given.