From 0e03962615a84f11b8c566cdccdd195b0a543497 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Feb 2013 17:39:52 -0800 Subject: LaTeX reader: Parse `\hrule` as HorizontalRule. Closes #746. --- src/Text/Pandoc/Readers/LaTeX.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc') 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) -- cgit v1.2.3