Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions ghcide/src/Development/IDE/Spans/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,10 @@ haddockToMarkdown (H.DocOrderedList things) =
haddockToMarkdown (H.DocDefList things)
= '\n' : (unlines $ map (\(term, defn) -> "+ **" ++ haddockToMarkdown term ++ "**: " ++ haddockToMarkdown defn) things)

-- we cannot render math by default
haddockToMarkdown (H.DocMathInline _)
= "*cannot render inline math formula*"
haddockToMarkdown (H.DocMathDisplay _)
= "\n\n*cannot render display math formula*\n\n"
haddockToMarkdown (H.DocMathInline s)
= "`" ++ s ++ "`"
haddockToMarkdown (H.DocMathDisplay s)
= "\n```latex\n" ++ s ++ "\n```\n"

-- TODO: render tables
haddockToMarkdown (H.DocTable _t)
Expand Down
Loading