Muse writer: escape empty strings
This guarantees that conditionalEscapeString never returns empty string.
This commit is contained in:
parent
23ed97f081
commit
bd2bd9aeaa
1 changed files with 2 additions and 1 deletions
|
@ -327,7 +327,8 @@ shouldEscapeString :: PandocMonad m
|
||||||
-> Muse m Bool
|
-> Muse m Bool
|
||||||
shouldEscapeString s = do
|
shouldEscapeString s = do
|
||||||
insideLink <- asks envInsideLinkDescription
|
insideLink <- asks envInsideLinkDescription
|
||||||
return $ any (`elem` ("#*<=|" :: String)) s ||
|
return $ null s ||
|
||||||
|
any (`elem` ("#*<=|" :: String)) s ||
|
||||||
"::" `isInfixOf` s ||
|
"::" `isInfixOf` s ||
|
||||||
"~~" `isInfixOf` s ||
|
"~~" `isInfixOf` s ||
|
||||||
"[[" `isInfixOf` s ||
|
"[[" `isInfixOf` s ||
|
||||||
|
|
Loading…
Reference in a new issue