Handle DocProperty correctly (thanks @Fuuzetsu)

This commit is contained in:
Michael Snoyman 2014-12-07 09:00:37 +02:00
parent 6ea4b2161b
commit d24c1a36ff

View File

@ -321,7 +321,7 @@ hToHtml =
go (DocPic (Picture url mtitle)) =
H.img H.! A.src (H.toValue url) H.! A.title (H.toValue $ fromMaybe mempty mtitle)
go (DocAName s) = H.div H.! A.id (H.toValue s) $ mempty
go (DocProperty s) = toHtml s -- FIXME correct?
go (DocProperty s) = H.pre $ H.code $ toHtml s
go (DocExamples es) = flip foldMap es $ \(Example exp' ress) ->
H.div H.! A.class_ "example" $ do
H.pre H.! A.class_ "expression" $ H.code $ toHtml exp'