diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-06 21:46:38 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-06 21:49:06 +0100 |
commit | 9e87114234acf2f52524a59225ca3aa41e22d794 (patch) | |
tree | 2d139c6fe2d9bdeddc7f327cf6c71085fc8fbf1d /src | |
parent | 13698e79680c656392aecc51a60cd1e6e19bdefa (diff) | |
download | pandoc-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.hs | 5 |
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 |