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