@@ -117,7 +117,10 @@ docHToInlines isCode d' =
117117 $ map B.code $ splitBy (=='\n') s
118118 | otherwise -> B.text s
119119 DocParagraph _ -> mempty
120− DocIdentifier (_,s,_) -> B.codeWith ("",["haskell","identifier"],[]) s
120+ DocIdentifier ident ->
121+ case toRegular (DocIdentifier ident) of
122+ DocIdentifier s -> B.codeWith ("",["haskell","identifier"],[]) s
123+ _ -> mempty
121124 DocIdentifierUnchecked s -> B.codeWith ("",["haskell","identifier"],[]) s
122125 DocModule s -> B.codeWith ("",["haskell","module"],[]) s
123126 DocWarning _ -> mempty -- TODO
@@ -133,7 +136,8 @@ docHToInlines isCode d' =
133136 DocDefList _ -> mempty
134137 DocCodeBlock _ -> mempty
135138 DocHyperlink h -> B.link (hyperlinkUrl h) (hyperlinkUrl h)
136− (maybe (B.text $ hyperlinkUrl h) B.text $ hyperlinkLabel h)
139+ (maybe (B.text $ hyperlinkUrl h) (docHToInlines isCode)
140+ (hyperlinkLabel h))
137141 DocPic p -> B.image (pictureUri p) (fromMaybe (pictureUri p) $ pictureTitle p)
138142 (maybe mempty B.text $ pictureTitle p)
139143 DocAName s -> B.spanWith (s,["anchor"],[]) mempty