ConTeXt: Escape # in link URLs.

Partially addresses #291.
This commit is contained in:
John MacFarlane 2011-08-18 12:16:39 -07:00
parent 15eb713e5d
commit f9ae93d854

View file

@ -279,7 +279,8 @@ inlineToConTeXt (Link txt (src, _)) = do
put $ st {stNextRef = next + 1}
let ref = show next
label <- inlineListToConTeXt txt
return $ "\\useURL" <> brackets (text ref) <> brackets (text src) <>
return $ "\\useURL" <> brackets (text ref) <>
brackets (text $ escapeStringUsing [('#',"\\#")] src) <>
brackets empty <> brackets label <>
"\\from" <> brackets (text ref)
inlineToConTeXt (Image _ (src, _)) = do