Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ANSI writer #9565

Merged
merged 16 commits into from
Sep 3, 2024
Prev Previous commit
Next Next commit
Underline links
  • Loading branch information
silby committed Sep 2, 2024
commit c2ede57213b356a2c2ea2d9a89fb008b85ab8db1
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/ANSI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 268,7 @@ inlineToANSI _ Space = return D.space

inlineToANSI opts (Link (_, _, _) txt (src, _)) = do
label <- inlineListToANSI opts txt
return $ D.fg D.cyan $ D.link src label
return $ D.underlined $ D.fg D.cyan $ D.link src label

inlineToANSI opts (Image _ alt _) = do
alt' <- inlineListToANSI opts alt
Expand Down