aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-07-23 10:44:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-07-23 10:44:05 -0700
commit98c922ad43b599ad38da8782de64bfb2d564fbac (patch)
tree2179c93f47101bf30bc9612361512dd02d4624df
parentff0e130560e32d23ead14bca7af821a80acc3318 (diff)
downloadpandoc-98c922ad43b599ad38da8782de64bfb2d564fbac.tar.gz
LaTeX reader: Add identifier in divs for ams theorem environments.
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index cd856b425..ebdee1b1a 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1969,7 +1969,7 @@ theoremEnvironment name = do
RemarkStyle -> B.emph
let title = titleEmph (B.text (theoremName tspec) <> number)
<> optTitle <> space
- return $ divWith ("", [name], []) $ addTitle title
+ return $ divWith (fromMaybe "" mblabel, [name], []) $ addTitle title
$ case theoremStyle tspec of
PlainStyle -> walk italicize bs
_ -> bs