# docauthors

    .docauthors authors:{Map<String, Dictionary<Any>>? = null} -> Any

Content copied to clipboard

If authors is specified, sets the document authors to that value. Compared to docAuthor, this function allows for multiple authors and additional information.

    .docauthors
      - John Doe
        - email: johndoe@email.com
        - website: https://github.com/iamgio/quarkdown
      - Jane Doe
        - email: janedoe@email.com

Content copied to clipboard

If it's unset, the current authors of the document are returned as a dictionary, where each key is the author's name, and its value is another dictionary containing the additional information.

The following example takes advantage of forEach with destructuring to iterate over all authors and their information.

    .foreach {.docauthors}
        name info:
        .name, .info::get {email}

Content copied to clipboard

> Output:

> John Doe, johndoe@email.com

> Jane Doe, janedoe@email.com

#### Return

the current document authors if authors is unset, nothing otherwise

#### Parameters

authors

- Optional

optional authors to assign to the document. Each dictionary entry contains the author's name associated with a nested dictionary of additional information.

#### Wiki page

document-metadata