Pandoc command to replicate RStudio's Markdown canonicalization

I like and use RStudio’s Markdown canonicalization feature a lot. If I understand correctly, it is implemented by basically sending the document to a Pandoc "round trip" on save (plus some additional, at times buggy special processing, I think).

What I'd like to be able to do is replicate the part of the canonicalization which is done via the Pandoc CLI. Could you provide the exact pandoc command that is used for this?

Thanks in advance.