The AsciiDoc specs on emphasis/italics is here - https://docs.asciidoctor.org/asciidoc/latest/text/italic/ - and talks about the intraword scenario. Hope that helps. Leonard On Tue, Jan 4, 2022 at 2:13 PM John MacFarlane wrote: > > I see this in the code: > > inlineToAsciiDoc opts (Emph lst) = do > contents <- inlineListToAsciiDoc opts lst > isIntraword <- gets intraword > let marker = if isIntraword then "__" else "_" > return $ marker <> contents <> marker > > > So apparently in asciidoc you use __ for intraword emphasis > (I don't use asciidoc myself). > > The problem may be that this is a context asciidoc doesn't > consider "intraword." > > Anyway, please submit a bug report and link here. > > Frank Bergmann writes: > > > Hi, > > > > I found a strange behaviour when converting some HTML files to asciidoc. > > > > Versions used: > > asciidoc 9.1.0 > > pandoc 2.16.2 > > > > Example input: > > > > > > > > > > Xx > > > > > > Xx, > > > > > > > > With "pandoc --wrap=none -f html -t asciidoc" I get this asciidoc output: > > > > link:x.htm[_Xx_]__,__ > > > > The double underscores look "suspicious" and with "asciidoc -b > > docbook;xmllint" I get: > > > > z.xml:10: parser error : Unescaped '<' not allowed in attributes values > > link:x.htm > role="Xx">, > > > The related docbook line which was created by asciidoc: > > > > link:x.htm > role="Xx">, > > > > *Is this a known bug?* > > > > > > If I add a space before comma... > > > > Xx , > > > > then I get > > > > link:x.htm[_Xx_] _,_ > > > > which causes no issue. Also adding a space before the emphasis... > > > > Xx , > > > > create an asciidoc file which can be rendered: > > > > link:x.htm[_Xx_] _,_ > > > > > > > > Does someone know this? Does a fix already exist? > > > > > > cheers, > > Frank > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/3f7b920b-c982-5be5-fa04-9025e008e518%40tuxad.com > . > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/m2v8yzpb5x.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3JE2PPCY8%3DagCY9wtvwrMKXAidpSVFN650oc%2BHge8J3dw%40mail.gmail.com.