Internal link processing pandoc plugin fails

As a small extra: Also, I just realized, that if I use ParkerRobb’s solution, the --citeproc does not work in the way I would like it to. I cite my literature as wikilinks (for quick access) and would like to have an order in which both processes are used. For example, I have:

  • [[@citekey]]
  • [[normal wikilink]]

I then first would like the citekey to be transformed:

  • [[@citekey]] → Author YYYY (or at least [Author YYYY])
  • [[normal wikilink]] → [[normal wikilink]] (no change)

and the Wikilink afterwards

  • [Author YYYY] → [Author YYYY]
  • [[normal wikilink]] → normal wikilink (in plain text)

It does work (as hyperlink), if the citations are no wikilinks, e.g.

  • [@citekey] → Author YYYY
  • [[normal wikilink]] → normal wikilink