public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* "double emphasis" bug when converting to asciidoc?
@ 2022-01-04 18:02 Frank Bergmann
       [not found] ` <3f7b920b-c982-5be5-fa04-9025e008e518-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Frank Bergmann @ 2022-01-04 18:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

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:

<!DOCTYPE HTML>
<html>
<head>
<title>Xx</title>
</head>
<body>
<a href="x.htm"><i>Xx</i></a><i>,</i>
</body>
</html>

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
<simpara>link:x.htm<emphasis><phrase 
role="<emphasis>Xx</emphasis>">,</phrase></

The related docbook line which was created by asciidoc:

<simpara>link:x.htm<emphasis><phrase 
role="<emphasis>Xx</emphasis>">,</phrase></emphasis></simpara>

*Is this a known bug?*


If I add a space before comma...

<a href="x.htm"><i>Xx</i></a><i> ,</i>

then I get

link:x.htm[_Xx_] _,_

which causes no issue. Also adding a space before the emphasis...

<a href="x.htm"><i>Xx</i></a> <i>,</i>

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.

[-- Attachment #2: Type: text/html, Size: 3006 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-28 11:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 18:02 "double emphasis" bug when converting to asciidoc? Frank Bergmann
     [not found] ` <3f7b920b-c982-5be5-fa04-9025e008e518-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
2022-01-04 19:12   ` John MacFarlane
     [not found]     ` <m2v8yzpb5x.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-04 19:50       ` Leonard Rosenthol
     [not found]         ` <CALu=v3JE2PPCY8=agCY9wtvwrMKXAidpSVFN650oc+Hge8J3dw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-05  3:17           ` John MacFarlane
     [not found]             ` <m2pmp6q3ah.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-05 17:19               ` Frank Bergmann
2022-06-25  9:34               ` Translating style sheets in reader on HTML input Frank Bergmann
     [not found]                 ` <c09f254c-5ccf-1ed4-97ab-4e6bccbbdcb6-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
2022-06-25 11:23                   ` William Lupton
     [not found]                     ` <CAEe_xxh02ZZ_HbZS0cPDZ4rWE+ES5zYJQsa4Uw9_bTBX5aEAVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-28 11:56                       ` Frank Bergmann
2022-01-05  8:39       ` "double emphasis" bug when converting to asciidoc? Frank Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).