I use the package "answers" in a `Markdown` file. After compilation with `Pandoc` the PDF I get is ok (solutions at the right place) but the option of the following LaTeX command `\Optionsolutionfile{ans}[ex1]` produces the writing of `[ex1]`. How to avoid that?

I precise that there are two series of exercises in my document and each series is followed by the solutions.

That's why I use `\Optionsolutionfile{ans}[ex1]` and then `\Optionsolutionfile{ans}[ex2]` at another place.

Thanks in advance