jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.26k stars 3.31k forks source link

Could utils.citeproc() support a 'quiet' flag? #9077

Open wlupton opened 10 months ago

wlupton commented 10 months ago

utils.citeproc() doesn't (as far as I know) allow the quiet flag to be set just for its invocation.

This would be very useful for the multibib filter, which runs citeproc in such a way that missing citations are expected (running make currently generates warnings).

Would it make sense to add a quiet flag or provide some other mechanism to achieve the same effect?

pandoc 3.1.8. Thanks.

jgm commented 10 months ago

A more general (and I think quite simple) solution would be a function that sets the verbosity level (wrapping setVerbosity). This could be used not just with citeproc but elsewhere. @tarleb what do you think?

tarleb commented 9 months ago

Should be doable, I think. I'm assigning myself so I won't lose track of this.

tarleb commented 9 months ago

I'm slowly working my way back into things, so this might not work, but calling warn('@off') before could help to prevent warnings from being printed to stderr.