Haddock writer: omit formatting inside links.
It isn't supported by Haddock. Closes #2515.
This commit is contained in:
parent
469338a272
commit
995f28ff07
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue