diff options
author | bucklereed <horridimpfoobarbaz@chammy.info> | 2017-08-05 18:03:31 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-05 10:03:31 -0700 |
commit | 685788cd4b13d2162dc011e8f3826da37522e59b (patch) | |
tree | 8d49942a365b2527df1a6efedd66fcaa80f2971d /src | |
parent | 7a3a8790de175c9a21d13786214fdea4bb157b3d (diff) | |
download | pandoc-685788cd4b13d2162dc011e8f3826da37522e59b.tar.gz |
LaTeX reader: plainbreak, fancybreak et al from the memoir class (#3833)
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 5877bbbe1..b06cd7348 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1701,6 +1701,15 @@ blockCommands = M.fromList $ -- letters , ("opening", (para . trimInlines) <$> (skipopts *> tok)) , ("closing", skipopts *> closing) + -- memoir + , ("plainbreak", braced >> pure horizontalRule) + , ("plainbreak*", braced >> pure horizontalRule) + , ("fancybreak", braced >> pure horizontalRule) + , ("fancybreak*", braced >> pure horizontalRule) + , ("plainfancybreak", braced >> braced >> braced >> pure horizontalRule) + , ("plainfancybreak*", braced >> braced >> braced >> pure horizontalRule) + , ("pfbreak", pure horizontalRule) + , ("pfbreak*", pure horizontalRule) -- , ("hrule", pure horizontalRule) , ("strut", pure mempty) |