From: Jeff King Date: Thu, 11 Jun 2026 06:25:25 GMT Subject: Re: [PATCH v2 3/3] doc: git-config: escape erroneous highlight markup Message-ID: <20260611062525.GB2189088@coredump.intra.peff.net> In-Reply-To: <20260611062423.GA2189088@coredump.intra.peff.net> [and naturally I forgot to cc Jean-Noël; resending, sorry for the noise] On Thu, Jun 11, 2026 at 02:24:23AM -0400, Jeff King wrote: > On Thu, Jun 11, 2026 at 02:11:57AM -0400, Jeff King wrote: > > > Though curiously the case of `#` in git-fast-import seems not to get > > marked as in the html output (even though the nearby `LF` does). > > I wonder if there is some special treatment of `#` or something. > > Ah, weird, it has to do with our config file. > > If I do this (not in the git repository): > > echo 'This is a literal `#` symbol.' >foo.adoc > asciidoc foo.adoc > grep -i symbol foo.html > > then I get markers, like: > >

This is a literal # symbol.

> > But if I build with: > > asciidoc -f path/to/git/Documentation/asciidoc.conf foo.adoc > > then the grep shows: > >

This is a literal # symbol.

> > Looks like it is due to our [literal-inlinemacro] definition, which > comes from 974cdca345 (doc: introduce a synopsis typesetting, > 2024-09-24). I think this might have been an unintended side effect. > +cc the author of that commit. > > For the purposes of your series, I think we can ignore any issues with > [literal-inlinemacro] for the moment, and decide on "\" versus `` > depending on which we prefer. > > -Peff