diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-02-11 17:39:52 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-02-11 17:39:52 -0800 |
commit | 0e03962615a84f11b8c566cdccdd195b0a543497 (patch) | |
tree | 7274388ea37db0850153fffaecab3b1fc66e1c57 | |
parent | 18d490bd389cc33c6c45a0f68636e401265b25ff (diff) | |
download | pandoc-0e03962615a84f11b8c566cdccdd195b0a543497.tar.gz |
LaTeX reader: Parse `\hrule` as HorizontalRule.
Closes #746.
-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 1eba22251..9032ba342 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -269,6 +269,7 @@ blockCommands = M.fromList $ , ("opening", (para . trimInlines) <$> (skipopts *> tok)) , ("closing", skipopts *> closing) -- + , ("hrule", pure horizontalRule) , ("rule", skipopts *> tok *> tok *> pure horizontalRule) , ("item", skipopts *> loose_item) , ("documentclass", skipopts *> braced *> preamble) |