From: SZEDER Gábor Date: Sun, 17 Aug 2025 21:29:23 GMT Subject: Re: [PATCH v3 7/9] doc: git-log: convert pretty formats to new doc format Message-ID: In-Reply-To: <0d461544c9d720e379a867a9713998bf09136885.1751914412.git.gitgitgadget@gmail.com> On Mon, Jul 07, 2025 at 06:53:30PM +0000, Jean-Noël Avila via GitGitGadget wrote: > From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= > > - Use __ instead of in the description > - Use `backticks` for keywords and more complex option > descriptions. The new rendering engine will apply synopsis rules to > these spans. > > For all the formats in the form of %(foo), the formatting needs to be > heavier because we not want the parentheses to be rendered as syntax > elements,but as keywords, i.e. we need to circumvent the syntax highlighting > of synopsis. In this particular case, this requires the heavy escaping of > the parts that contain parentheses with ++. > > Signed-off-by: Jean-Noël Avila > --- > Documentation/pretty-formats.adoc | 283 +++++++++++++++--------------- > 1 file changed, 143 insertions(+), 140 deletions(-) > > diff --git a/Documentation/pretty-formats.adoc b/Documentation/pretty-formats.adoc > index 07475de8c337..9ed0417fc811 100644 > --- a/Documentation/pretty-formats.adoc > +++ b/Documentation/pretty-formats.adoc > +++%(decorate++`[: