@@ -256,6 +256,8 @@ renderExternal fmt width doc
256256 decorate HTMLOutput (AnnSearchResult _) = id
257257 decorate HTMLOutput (AnnErr _) = id
258258 decorate HTMLOutput (AnnNamespace _ _) = id
259+ decorate HTMLOutput (AnnLink url) =
260+ \txt -> "<a href=\"" ++ url ++ "\">" ++ txt ++ "</a>"
259261
260262 decorate LaTeXOutput (AnnName _ (Just TypeOutput) _ _) =
261263 latex "IdrisType"
@@ -284,6 +286,7 @@ renderExternal fmt width doc
284286 decorate LaTeXOutput (AnnSearchResult _) = id
285287 decorate LaTeXOutput (AnnErr _) = id
286288 decorate LaTeXOutput (AnnNamespace _ _) = id
289+ decorate LaTeXOutput (AnnLink url) = (++ "(\\url{" ++ url ++ "})")
287290
288291 tag cls docs str = "<span class=\""++cls++"\""++title++">" ++ str ++ "</span>"
289292 where title = maybe "" (\d->" title=\"" ++ d ++ "\"") docs