Skip to content
Discussion options

You must be logged in to vote

The safest way should be to access meta['authors'] which should be present with a normalized schema described here (since we're normalizing the author into the authors key):

https://quarto.org/docs/journals/authors.html

Using this rather than access the author key directly will give you the benefit of the author normalization that we do, ensuring that no matter how the user writes the author, you're able to access it consistently / predictably.

Does this work?

return {
  ["doc-source"] = function(args, kwargs, meta)
    quarto.utils.dump(meta["authors"])

    return nil
  end
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Nenuial
Comment options

@dragonstyle
Comment options

@Nenuial
Comment options

Answer selected by Nenuial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants