Asciidoc writer: fix underline.

We were rendering it as `+++text+++`; this is now changed to
`[.underline]#text#`.  See comment at
<https://github.com/jgm/pandoc/issues/8070#issuecomment-1126883824>.
This commit is contained in:
John MacFarlane 2022-05-15 14:30:30 -07:00
parent 9c85933b38
commit 1906ae0548

View file

@ -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