From 62f2d121a7217b78ae1c20a32519550b0ebc88c8 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Mon, 12 Apr 2010 05:07:53 +0000 Subject: merge in markupExample changes --- src/Haddock/Backends/Xhtml/DocMarkup.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Haddock/Backends/Xhtml/DocMarkup.hs b/src/Haddock/Backends/Xhtml/DocMarkup.hs index 5103f569..3e925ce0 100644 --- a/src/Haddock/Backends/Xhtml/DocMarkup.hs +++ b/src/Haddock/Backends/Xhtml/DocMarkup.hs @@ -41,8 +41,10 @@ parHtmlMarkup ppId isTyCon = Markup { markupOrderedList = ordList, markupDefList = defList, markupCodeBlock = pre, - markupURL = \url -> anchor ! [href url] << toHtml url, - markupAName = \aname -> namedAnchor aname << toHtml "" + markupURL = \url -> anchor ! [href url] << url, + markupAName = \aname -> namedAnchor aname << "", + markupPic = \path -> image ! [src path], + markupExample = examplesToHtml } where -- If an id can refer to multiple things, we give precedence to type -- cgit v1.2.3