docauthors

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

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

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, .get {email} from:{.info}

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