Open jjallaire opened 2 years ago
Full disclosure that the actual pandoc command is more complicated that what is shown (e.g. we implement some pandoc features like number-sections internally in our Lua filters so while number-sections: true appears in the printout we actually pass number-sections: false). That print-out is mostly informational to show the user how their metadata resolved/merged and note differences in pandoc defaults that our formats use. The actual pandoc command involves lists of filters and temporary include files (which are removed after render) so there isn't a practical way to preserve exactly the pandoc command and re-run it (as you can do e.g. for .tex).
All of that said, I have found it personally useful for debugging a number of times to show what's actually sent to pandoc so I do think a mode that prints all of this clearly (and/or writes it to a log dir) would be quite useful and something we should do sooner rather than later.
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1756