From ca328a464a071c481b92355d5ed52249b9ba041e Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 15 Jul 2025 10:51:10 -0400 Subject: [PATCH] Add prettyPrint definition for horizontal rule --- src/MdToHTML.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MdToHTML.hs b/src/MdToHTML.hs index dea69a6..d7ec5f0 100644 --- a/src/MdToHTML.hs +++ b/src/MdToHTML.hs @@ -82,6 +82,7 @@ prettyPrint :: MdToken -> String prettyPrint (Para token) = "

" ++ T.unpack (wrapText defaultWrapSettings 70 (T.pack $ prettyPrint token)) ++ "

\n" prettyPrint (Table (thead : tokenGrid)) = "\n\n\n" ++ concatMap (\x -> "\n") thead ++ "\n\n" ++ "\n" ++ concatMap (\x -> "\n" ++ concatMap (\y -> "\n") x ++ "\n") tokenGrid ++ "\n
" ++ rstrip (prettyPrint x) ++ "
" ++ rstrip (prettyPrint y) ++ "
\n" prettyPrint Linebreak = "
\n" +prettyPrint HorizontalRule = "
\n" prettyPrint (Line tokens) = concatMap prettyPrint tokens prettyPrint (Document tokens) = concatMap prettyPrint tokens prettyPrint token = show token