@@ -400,6 +400,10 @@ isHorizontalRule s =
400400 ((length xs) >= 4) && null ys
401401 where (xs, ys) = span (== '-') s
402402
403+startsWithSpace :: String -> Bool
404+startsWithSpace (x:_) = isSpace x
405+startsWithSpace [] = False
406+
403407fixOrEscape :: Bool -> Inline -> Bool
404408fixOrEscape sp (Str "-") = sp
405409fixOrEscape sp (Str ";") = not sp
@@ -407,7 +411,7 @@ fixOrEscape _ (Str ">") = True
407411fixOrEscape sp (Str s) = (sp && (startsWithMarker isDigit s ||
408412 startsWithMarker isAsciiLower s ||
409413 startsWithMarker isAsciiUpper s))
410− || isHorizontalRule s
414+ || isHorizontalRule s || startsWithSpace s
411415fixOrEscape _ Space = True
412416fixOrEscape _ SoftBreak = True
413417fixOrEscape _ _ = False