Re: [PATCH 0/6] AsciiDoc vs Asciidoctor, once again
- From
- Martin Ågren <martin.agren@gmail.com>
- Date
- May 14, 2021, 15:28 UTC
- Message-ID
- <CAN0heSp7JFS3j+DypQm=P-rPzyScvs+Yed75AXYBsQpbJtVytA@mail.gmail.com>
- In-Reply-To
- <609e6be4bc14d_4312720861@natae.notmuch>
On Fri, 14 May 2021 at 14:24, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 15 quoted lines
> > Martin Ågren wrote: > > On Fri, 14 May 2021 at 03:40, Felipe Contreras > > <felipe.contreras@gmail.com> wrote: > > > > > We should be submitting bug reports to the asciidoctor project as well, > > > so in the future it's less likely we find ourselves in the same > > > scenario. > > > > > > Preferably the bug report should be in the commit message. > > > > I don't have an account with the website they use for their issue > > tracking. > > GitHub? It probably takes a couple of minutes to set up an account.
Yes, it's GitHub. I'm not interested in having an account there. There's some trade-off there with me not being able to report bugs, but that cuts both ways, so I don't feel bad about it.
> > If you want to submit a bug report and post the link here, > > that's fine by me and I'll include it in the reroll. > > If you would rather have me act as a proxy, that's fine by me.
Thanks. If you have better things to do, no worry.
> Just give me a simple example that produces the issue.
Here are three variants where AsciiDoc 8.6.10 renders the same, with emphasis:
single quotes that will not render literally: 'git cat-file'.
single quotes that won't render literally: 'git cat-file'.
single quotes that\'ll render literally: 'git cat-file'.
With Asciidoctor (2.0.15),
asciidoctor -b docbook5 -d manpage -o test.xml test.txt
the XML contains
<simpara>single quotes that will not render literally: <emphasis>git cat-file</emphasis>.</simpara> <simpara>single quotes that won’t render literally: <emphasis>git cat-file</emphasis>.</simpara> <simpara>single quotes that’ll render literally: 'git cat-file'.</simpara>
That last paragraph is not as expected. I expect <emphasis>.
I realize that a good answer here is "don't do that then". But the background is that there's some other stuff going on that means AsciiDoc needs that backspaced apostrophe. So this is a minimal reproduction for Asciidoctor where we've lost some of the AsciiDoc-specific background.
A fix that works with both tools is an attribute:
:apos: '
single quotes that won{apos}t render literally: 'git cat-file'.Martin