Skip to content

Commit

Permalink
Asciidoc writer: fix underline.
Browse files Browse the repository at this point in the history
We were rendering it as `+++text+++`; this is now changed to
`[.underline]#text#`.  See comment at
<#8070 (comment)>.
  • Loading branch information
jgm committed May 15, 2022
1 parent 9c85933 commit 1906ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/AsciiDoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ inlineToAsciiDoc opts (Emph lst) = do
return $ marker <> contents <> marker
inlineToAsciiDoc opts (Underline lst) = do
contents <- inlineListToAsciiDoc opts lst
return $ "+++" <> contents <> "+++"
return $ "[.underline]#" <> contents <> "#"
inlineToAsciiDoc opts (Strong lst) = do
contents <- inlineListToAsciiDoc opts lst
isIntraword <- gets intraword
Expand Down

0 comments on commit 1906ae0

Please sign in to comment.