git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Add identifier in divs for ams theorem environments.
commit98c922ad43b599ad38da8782de64bfb2d564fbac authorJohn MacFarlane <jgm@berkeley.edu> dateThu 23 Jul 2020, 10:44 (6 years ago) parentff0e130
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -1969,7 +1969,7 @@ theoremEnvironment name = do
19691969 RemarkStyle -> B.emph
19701970 let title = titleEmph (B.text (theoremName tspec) <> number)
19711971 <> optTitle <> space
1972− return $ divWith ("", [name], []) $ addTitle title
1972+ return $ divWith (fromMaybe "" mblabel, [name], []) $ addTitle title
19731973 $ case theoremStyle tspec of
19741974 PlainStyle -> walk italicize bs
19751975 _ -> bs