C uses \mintinline[]{text}{{} and \mintinline[]{text}{}} to delimit scopes.
For \mintinline, if using braces for the final parameter, it extends to balanced braces. The resulting PDF looks something like:
C uses {} and \mintinline[]{text}{} to delimit scopes.
For these cases, \mintinline works like \verb in that it can accept almost any other character as a delimiter, e.g., \mintinline[]{text}|{| and \mintinline[]{text}|}| would work in this case. I opened a PR to the Python version of this filter nick-ulle/pandoc-minted#8 just before I found this one. Unfortunately, I'm not as familiar with Lua so I can't do the same here.
Consider the following text:
which converts to the following LaTeX:
For
\mintinline
, if using braces for the final parameter, it extends to balanced braces. The resulting PDF looks something like:For these cases,
\mintinline
works like\verb
in that it can accept almost any other character as a delimiter, e.g.,\mintinline[]{text}|{| and \mintinline[]{text}|}|
would work in this case. I opened a PR to the Python version of this filter nick-ulle/pandoc-minted#8 just before I found this one. Unfortunately, I'm not as familiar with Lua so I can't do the same here.cc @svenevs