@@ -400,6 +400,10 @@ isHorizontalRule s =
400 ((length xs) >= 4) && null ys
400 ((length xs) >= 4) && null ys
401 where (xs, ys) = span (== '-') s
401 where (xs, ys) = span (== '-') s
403+startsWithSpace :: String -> Bool
404+startsWithSpace (x:_) = isSpace x
405+startsWithSpace [] = False
403fixOrEscape :: Bool -> Inline -> Bool
407fixOrEscape :: Bool -> Inline -> Bool
404fixOrEscape sp (Str "-") = sp
408fixOrEscape sp (Str "-") = sp
405fixOrEscape sp (Str ";") = not sp
409fixOrEscape sp (Str ";") = not sp
@@ -407,7 +411,7 @@ fixOrEscape _ (Str ">") = True
407fixOrEscape sp (Str s) = (sp && (startsWithMarker isDigit s ||
411fixOrEscape sp (Str s) = (sp && (startsWithMarker isDigit s ||
408 startsWithMarker isAsciiLower s ||
412 startsWithMarker isAsciiLower s ||
409 startsWithMarker isAsciiUpper s))
413 startsWithMarker isAsciiUpper s))
410− || isHorizontalRule s
414+ || isHorizontalRule s || startsWithSpace s
411fixOrEscape _ Space = True
415fixOrEscape _ Space = True
412fixOrEscape _ SoftBreak = True
416fixOrEscape _ SoftBreak = True
413fixOrEscape _ _ = False
417fixOrEscape _ _ = False