@@ -9,7 +9,7 @@ import qualified Cheapskate.Types as CT
99
1010import Util.Pretty
1111
12−import Idris.Core.TT (OutputAnnotation, Name)
12+import Idris.Core.TT (OutputAnnotation(..), TextFormatting(..), Name)
1313
1414import qualified Data.Text as T
1515import qualified Data.Foldable as F
@@ -71,10 +71,11 @@ renderInline (CT.Str s) = text $ T.unpack s
7171renderInline CT.Space = space
7272renderInline CT.SoftBreak = softline
7373renderInline CT.LineBreak = line
74−renderInline (CT.Emph txt) = renderInlines txt -- TODO
75−renderInline (CT.Strong txt) = renderInlines txt -- TODO
74+renderInline (CT.Emph txt) = annotate (AnnTextFmt ItalicText) $ renderInlines txt -- TODO
75+renderInline (CT.Strong txt) = annotate (AnnTextFmt BoldText) $ renderInlines txt -- TODO
7676renderInline (CT.Code txt) = text $ T.unpack txt
77−renderInline (CT.Link body url title) = renderInlines body <+> parens (text $ T.unpack url)
77+renderInline (CT.Link body url title) = annotate (AnnTextFmt UnderlineText) (renderInlines body) <+>
78+ parens (text $ T.unpack url)
7879renderInline (CT.Image body url title) = text "<image>" -- TODO
7980renderInline (CT.Entity a) = text $ "<entity " ++ T.unpack a ++ ">" -- TODO
8081renderInline (CT.RawHtml txt) = text "<html content>" --TODO