Aliases in YAML not working when using nocite

Use case or problem

When using nocite elements in the YAML block, aliases are not detected:

e.g.:

---
alias: "yxc"

nocite: |
	@rosenbergerHardProblemPostPhenomenology2020
---

Here is the Pandoc documentation for the corresponding attribute: https://pandoc.org/MANUAL.html#including-uncited-items-in-the-bibliography

Proposed solution

Either

  1. Recognize the nocite elements as YAML attributes or
  2. Recognize aliases independently of other YAML attributes

Current workaround (optional)

Related feature requests (optional)

There is no problem with nocite. I believe your YAML is not properly formatted.

Thank you for your fast reply. Did you test the YAML I posted?

I did, it’s not correctly formatted because you used a tab instead of spaces.