fc78be1140
If parsing fails in a raw environment (e.g. due to special characters like unescaped `_`), try again as a verbatim environment, which is less sensitive to special characters. This allows us to capture special environments that change catcodes as raw tex when `-f latex+raw_tex` is used. Closes #6034.
11 lines
316 B
Markdown
11 lines
316 B
Markdown
```
|
|
% pandoc -f latex+raw_tex -t native
|
|
\begin{figure*}
|
|
\centering
|
|
\begin{overpic}{test_pic}
|
|
\put (70,80) {Caption}
|
|
\end{overpic}
|
|
\end{figure*}
|
|
^D
|
|
[RawBlock (Format "latex") "\\begin{figure*}\n \\centering\n \\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}\n\\end{figure*}"]
|
|
```
|