aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-06 21:46:38 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-06 21:49:06 +0100
commit9e87114234acf2f52524a59225ca3aa41e22d794 (patch)
tree2d139c6fe2d9bdeddc7f327cf6c71085fc8fbf1d /src
parent13698e79680c656392aecc51a60cd1e6e19bdefa (diff)
downloadpandoc-9e87114234acf2f52524a59225ca3aa41e22d794.tar.gz
LaTeX reader: allow newpage, clearpage, pagebreak in inline contexts
as well as block contexts. Closes #3494.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 8c31b0404..c5f5df6dc 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -394,6 +394,8 @@ blockCommands = M.fromList $
, "markboth", "markright", "markleft"
, "hspace", "vspace"
, "newpage"
+ , "clearpage"
+ , "pagebreak"
]
graphicsPath :: PandocMonad m => LP m Blocks
@@ -658,6 +660,9 @@ inlineCommands = M.fromList $
[ "index"
, "hspace"
, "vspace"
+ , "newpage"
+ , "clearpage"
+ , "pagebreak"
]
mkImage :: PandocMonad m => [(String, String)] -> String -> LP m Inlines