[Rfc-markdown] 1.6.1: v: 3

Carsten Bormann <cabo@tzi.org> Mon, 21 February 2022 10:12 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B42143A0DE8 for <rfc-markdown@ietfa.amsl.com>; Mon, 21 Feb 2022 02:12:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8e5YSp8HeiYs for <rfc-markdown@ietfa.amsl.com>; Mon, 21 Feb 2022 02:11:56 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F7B53A0DEF for <rfc-markdown@ietf.org>; Mon, 21 Feb 2022 02:11:54 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K2J4Q61lczDCg7; Mon, 21 Feb 2022 11:11:50 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 667131110.244833-d49506c3ba2890f0a00e9189ba6264c8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
Date: Mon, 21 Feb 2022 11:11:50 +0100
Message-Id: <F8D413BB-6B10-488D-B0D6-E4A21F4382B0@tzi.org>
To: rfc-markdown@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/JC__LDDGuUbSFqyaEntF9r4kwKw>
Subject: [Rfc-markdown] 1.6.1: v: 3
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Feb 2022 10:12:02 -0000

For a long time, kramdown-rfc has been defaulting to RFCXMLv2.
xml2rfc already switched to default v3 with xml2rfc 3.0.0 in
2020-09-04.

It is time that kramdown-rfc does, too.

Changing a default creates a flag day.
As I hinted at before, the flag day is 2022-02-22 at 22:02:22 UTC.

At this time, all Makefiles/build scripts that still want to use the
v2 formatter (why?) and are not providing the -2/--v2 flag to the
kramdown-rfc tools will break.
Simultaneously, a few broken tools [1] will spontaneously start
working (once they have been updated to the current kramdown-rfc gem).

I'm using the opportunity to make a few other overdue changes, too.

(1)

The kramdown-rfc2629 gem now is accompanied by the kramdown-rfc gem.

kramdown-rfc is the official name of the tool, and for people who want
to use it under that name, there now is a gem with that name.
(This gem currently simply installs the kramdown-rfc2629 gem;
fully renaming gems is too much work with rubygems.
But you can forget the number 2629 now.)

(2)

Similarly (independent of which of the gems you have installed), the
kramdown-rfc2629 command is now accompanied by the kramdown-rfc
command.
This does the same, but already defaults to v3 today.

(3)

All kramdown-rfc processors (kdrfc, kramdown-rfc, kramdown-rfc2629)
now have -2 and -3 flags.  (The separate kdwatch gem is v3 only.)

These flags are about the output, not the input:
You only need to give -2 if you really need to make a document look
like it's 2016.

When you use kdrfc as the driver, -2 also switches the xml2rfc called
(which defaulted to --v3 since 2020-09-04) to --v2 (--legacy) mode
instead.

(4)

A new parameter is available for the YAML header:

    v: 3

can be used to override the command line default -2/-3.

That may not be particularly useful for the day left where the
default is still -2, but it also updates a few more defaults, which
therefore do not need to be given explicitly any more:

ipr: trust200902
stand_alone: yes
pi:
  toc: yes
  sortrefs: yes
  symrefs: yes

These are defaults, so they can be overridden in the YAML.
Note that, if you do give any of the "PI" values instead of accepting
the default set by "v: 3", you also need to switch on sortrefs which
inexplicably is not the default with xml2rfc (while toc and symrefs
*are* with v3). [Unless you are playing a practical joke on your
readers, you need to switch on sortrefs, or, if you just want to
dazzle them a little less, switch off symrefs.]

So this reduces the YAML boilerplate a little bit.

"v: 3" is also very useful as a mark on a markdown source file to
indicate that it has been looked at with v3 glasses.

(I expect to put a few more hooks on "v: 3", so if you need the utmost
of stability, maybe try switching that parameter on with 1.6.2 or 1.6.3.)

        .oOo.

Please do try out kramdown-rfc 1.6.1 and the "v: 3" feature.
As usual, you can do a "gem update", but maybe you also want to do a

   gem install kramdown-rfc

I promise I'll fix new bugs in 1.6.1 quickly for the next 80 hours or
so...

Happy Internet-Drafting -- two weeks and half a day left until the
deadline for 113 strikes at 2022-03-07T23:59:00Z.

Grüße, Carsten

[1]: https://github.com/ietf-tools/ietf-at/pull/78