aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-23 09:31:46 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-23 09:31:46 -0700
commit66a72b8eec08d7bffb431cc86795ec7cd63399fe (patch)
treeff7f734b2e373b931d0fd6fabcb86aab1ceddc69
parentfa2c008ae5edf36b5345d56e859d0b5cf7a14e69 (diff)
downloadpandoc-66a72b8eec08d7bffb431cc86795ec7cd63399fe.tar.gz
LaTeX reader: support abstract environment.
The abstract populates an "abstract" metadata field.
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
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)