aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-02-11 17:39:52 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-02-11 17:39:52 -0800
commit0e03962615a84f11b8c566cdccdd195b0a543497 (patch)
tree7274388ea37db0850153fffaecab3b1fc66e1c57 /src/Text/Pandoc
parent18d490bd389cc33c6c45a0f68636e401265b25ff (diff)
downloadpandoc-0e03962615a84f11b8c566cdccdd195b0a543497.tar.gz
LaTeX reader: Parse `\hrule` as HorizontalRule.
Closes #746.
Diffstat (limited to 'src/Text/Pandoc')
-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 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)