diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-23 09:31:46 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-23 09:31:46 -0700 |
commit | 66a72b8eec08d7bffb431cc86795ec7cd63399fe (patch) | |
tree | ff7f734b2e373b931d0fd6fabcb86aab1ceddc69 | |
parent | fa2c008ae5edf36b5345d56e859d0b5cf7a14e69 (diff) | |
download | pandoc-66a72b8eec08d7bffb431cc86795ec7cd63399fe.tar.gz |
LaTeX reader: support abstract environment.
The abstract populates an "abstract" metadata field.
-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 9ad803881..0da912ea6 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1016,6 +1016,7 @@ addTableCaption = walkM go environments :: M.Map String (LP Blocks) environments = M.fromList [ ("document", env "document" blocks <* skipMany anyChar) + , ("abstract", mempty <$ (env "abstract" blocks >>= addMeta "abstract")) , ("letter", env "letter" letterContents) , ("figure", env "figure" $ resetCaption *> skipopts *> blocks >>= addImageCaption) |