diff --git a/pandoc_latex_admonition/_main.py b/pandoc_latex_admonition/_main.py index 148b610..bd333e8 100644 --- a/pandoc_latex_admonition/_main.py +++ b/pandoc_latex_admonition/_main.py @@ -645,9 +645,9 @@ def new_environment(doc: Doc, environment: dict[str, Any]) -> str: return f""" \\newenvironment{{{environment['env']}}} {{ + \\savenotes\\tcolorbox[{','.join(options)}] \\setcounter{{mpfootnote}}{{\\value{{footnote}}}} \\renewcommand\\thempfootnote{{\\arabic{{mpfootnote}}}} - \\savenotes\\tcolorbox[{','.join(options)}] }} {{ \\endtcolorbox\\spewnotes