@@ -1018,16 +1018,16 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
1018 , ("lstinline", dolstinline)
1018 , ("lstinline", dolstinline)
1019 , ("mintinline", domintinline)
1019 , ("mintinline", domintinline)
1020 , ("Verb", doverb)
1020 , ("Verb", doverb)
1021− , ("url", ((unescapeURL . untokenize) <$> bracedUrl) >>= \url ->
1022− pure (link url "" (str url)))
1021+ , ("url", (\url -> link url "" (str url)) . unescapeURL . untokenize <$>
1023− , ("nolinkurl", ((unescapeURL . untokenize) <$> bracedUrl) >>= \url ->
1022+ bracedUrl)
1024− pure (code url))
1023+ , ("nolinkurl", code . unescapeURL . untokenize <$> bracedUrl)
1025− , ("href", (unescapeURL . untokenize <$>
1024+ , ("href", do url <- bracedUrl
1026− bracedUrl <* sp) >>= \url ->
1025+ sp
1027− tok >>= \lab -> pure (link url "" lab))
1026+ link (unescapeURL $ untokenize url) "" <$> tok)
1028 , ("includegraphics", do options <- option [] keyvals
1027 , ("includegraphics", do options <- option [] keyvals
1029− src <- unescapeURL . removeDoubleQuotes . untokenize <$> braced
1029+ mkImage options . unescapeURL . removeDoubleQuotes $
1030− mkImage options src)
1030+ untokenize src)
1031 , ("enquote*", enquote True Nothing)
1031 , ("enquote*", enquote True Nothing)
1032 , ("enquote", enquote False Nothing)
1032 , ("enquote", enquote False Nothing)
1033 -- foreignquote is supposed to use native quote marks
1033 -- foreignquote is supposed to use native quote marks