Move a comment in Muse Writer

This commit is contained in:
Alexander Krotov
2019-02-18 15:21:32 +03:00
parent b11ad32605
commit 073db7ac1f
+1 -1
View File
@@ -377,7 +377,6 @@ startsWithMarker f (x:xs) =
startsWithDot _ = False
startsWithMarker _ [] = False
-- | Escape special characters for Muse if needed.
containsFootnotes :: String -> Bool
containsFootnotes = p
where p ('[':xs) = q xs || p xs
@@ -407,6 +406,7 @@ shouldEscapeString s = do
("]" `isInfixOf` s && insideLink) ||
containsFootnotes s
-- | Escape special characters for Muse if needed.
conditionalEscapeString :: PandocMonad m
=> String
-> Muse m String