Render ThematicBreak wider

main
staticvoid 2022-06-27 20:17:32 +03:00
parent 72ec006124
commit e4df4da062
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ instance PrintColor Block where
printColor i
printBlockOne prefix ThematicBreak = do
putTextO prefix
putTextLnO "---"
-- TODO: this should depend on terminal width
putTextLnO . fromString $ replicate (80 - T.length prefix) '─'
printBlockOne prefix (BlockQuote b) = printBlockP (prefix <> "> ") b
printBlockOne prefix (CodeBlock lang content) = do
putTextLnO $ prefix <> "```" <> lang