Haddock writer: omit formatting inside links.

It isn't supported by Haddock.

Closes #2515.
This commit is contained in:
John MacFarlane 2015-11-16 20:53:01 -08:00
parent 469338a272
commit 995f28ff07

View file

@ -327,8 +327,8 @@ inlineToHaddock _ (RawInline f str)
inlineToHaddock _ (LineBreak) = return cr
inlineToHaddock _ Space = return space
inlineToHaddock opts (Cite _ lst) = inlineListToHaddock opts lst
inlineToHaddock opts (Link txt (src, _)) = do
linktext <- inlineListToHaddock opts txt
inlineToHaddock _opts (Link txt (src, _)) = do
let linktext = text $ escapeString $ stringify txt
let useAuto = isURI src &&
case txt of
[Str s] | escapeURI s == src -> True