diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-12-05 09:53:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-12-05 09:53:39 -0800 |
commit | ddb76cb356a82f6a9e51a6f3626dd154816e9205 (patch) | |
tree | c77c9bacb733c3d4a11269c8ad2aed9cc43dd8e0 /src/Text/Pandoc/Readers | |
parent | 6f35600204132c5a0907bb7cccb2e10ffb27506a (diff) | |
download | pandoc-ddb76cb356a82f6a9e51a6f3626dd154816e9205.tar.gz |
LaTeX reader: don't apply theorem default styling to a figure inside.
If we put an image in italics, then when rendering to Markdown
we no longer get an implicit figure.
Closes #6925.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 15a1a19fc..afe960454 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1812,6 +1812,7 @@ theoremEnvironment name = do _ -> bs italicize :: Block -> Block +italicize x@(Para [Image{}]) = x -- see #6925 italicize (Para ils) = Para [Emph ils] italicize (Plain ils) = Plain [Emph ils] italicize x = x |