Muse writer: hlint
This commit is contained in:
parent
6ea6011ca6
commit
afd3f21218
1 changed files with 4 additions and 4 deletions
|
@ -348,9 +348,9 @@ conditionalEscapeString :: PandocMonad m
|
||||||
-> Muse m String
|
-> Muse m String
|
||||||
conditionalEscapeString s = do
|
conditionalEscapeString s = do
|
||||||
shouldEscape <- shouldEscapeString s
|
shouldEscape <- shouldEscapeString s
|
||||||
if shouldEscape
|
return $ if shouldEscape
|
||||||
then return $ escapeString s
|
then escapeString s
|
||||||
else return $ s
|
else s
|
||||||
|
|
||||||
-- Expand Math and Cite before normalizing inline list
|
-- Expand Math and Cite before normalizing inline list
|
||||||
preprocessInlineList :: PandocMonad m
|
preprocessInlineList :: PandocMonad m
|
||||||
|
@ -489,7 +489,7 @@ inlineListToMuse :: PandocMonad m
|
||||||
=> [Inline]
|
=> [Inline]
|
||||||
-> Muse m Doc
|
-> Muse m Doc
|
||||||
inlineListToMuse lst = do
|
inlineListToMuse lst = do
|
||||||
lst' <- (normalizeInlineList . fixNotes) <$> preprocessInlineList (map (removeKeyValues . replaceSmallCaps) lst)
|
lst' <- normalizeInlineList . fixNotes <$> preprocessInlineList (map (removeKeyValues . replaceSmallCaps) lst)
|
||||||
insideAsterisks <- asks envInsideAsterisks
|
insideAsterisks <- asks envInsideAsterisks
|
||||||
modify $ \st -> st { stUseTags = False } -- Previous character is likely a '>' or some other markup
|
modify $ \st -> st { stUseTags = False } -- Previous character is likely a '>' or some other markup
|
||||||
local (\env -> env { envNearAsterisks = insideAsterisks }) $ renderInlineList lst'
|
local (\env -> env { envNearAsterisks = insideAsterisks }) $ renderInlineList lst'
|
||||||
|
|
Loading…
Add table
Reference in a new issue