Re: [rfc-i] [Rfc-markdown] Problem with Kramdown tooling and figures?

Carsten Bormann <cabo@tzi.org> Wed, 08 June 2022 13:13 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id DFFB8C15AE28 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 8 Jun 2022 06:13:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1654693997; bh=XZBnPF/sLmhj0Deod3G8IBP94LCD3DAn2qXzcpCP/6c=; h=From:In-Reply-To:Date:Cc:References:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=dLdcJ+ObOou7YVKPPCZDBkvo0X17lJuAsY0/dBHw05F5IpAfIweiX/geE4P4W8jrk S8qqhaVUj4xxoSC0lTS4q2/eP9olHAG1tXj3gSyYmYrFk2LsPodsN34FaTZ0SO1n64 0RLzdMnIQMIZ1o0m6K3IZvb8Jo7P/Aeb7Vh8Fiac=
X-Mailbox-Line: From rfc-interest-bounces@rfc-editor.org Wed Jun 8 06:13:17 2022
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id BBEA0C14F6EB; Wed, 8 Jun 2022 06:13:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1654693997; bh=XZBnPF/sLmhj0Deod3G8IBP94LCD3DAn2qXzcpCP/6c=; h=From:In-Reply-To:Date:Cc:References:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=dLdcJ+ObOou7YVKPPCZDBkvo0X17lJuAsY0/dBHw05F5IpAfIweiX/geE4P4W8jrk S8qqhaVUj4xxoSC0lTS4q2/eP9olHAG1tXj3gSyYmYrFk2LsPodsN34FaTZ0SO1n64 0RLzdMnIQMIZ1o0m6K3IZvb8Jo7P/Aeb7Vh8Fiac=
X-Original-To: rfc-interest@ietfa.amsl.com
Delivered-To: rfc-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5C6EBC14F6EB for <rfc-interest@ietfa.amsl.com>; Wed, 8 Jun 2022 06:13:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYsOnT0r0PDn for <rfc-interest@ietfa.amsl.com>; Wed, 8 Jun 2022 06:13:14 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 348DDC14F607 for <rfc-interest@rfc-editor.org>; Wed, 8 Jun 2022 06:13:14 -0700 (PDT)
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 4LJ6wz4hQ5zDCl1; Wed, 8 Jun 2022 15:08:35 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <MN2PR11MB375776E0FFAA1023CFE4334AB9A49@MN2PR11MB3757.namprd11.prod.outlook.com>
Date: Wed, 08 Jun 2022 15:08:35 +0200
Cc: Jay Daley <exec-director@ietf.org>, "rfc-markdown@ietf.org" <rfc-markdown@ietf.org>, RFC Interest <rfc-interest@rfc-editor.org>
X-Mao-Original-Outgoing-Id: 676386515.16529-01e9cb8bde9e701d158a2bdff59382da
Message-Id: <CBE99342-C08C-4799-8A11-07B4DC66D6D6@tzi.org>
References: <MN2PR11MB37570F4603464349B5DFFE5AB9A59@MN2PR11MB3757.namprd11.prod.outlook.com> <5E5D4003-E3D8-49B2-B14D-5D4AC7ADA0A3@tzi.org> <MN2PR11MB3757F2B3467FA1B188A1294DB9A49@MN2PR11MB3757.namprd11.prod.outlook.com> <7FFFF173-7D5F-4000-BDD1-9B407767C48E@ietf.org> <MN2PR11MB375776E0FFAA1023CFE4334AB9A49@MN2PR11MB3757.namprd11.prod.outlook.com>
To: "Paul Duffy (paduffy)" <paduffy=40cisco.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-interest/wP0H0y3BbBiICFNvV1jHEwCU6-M>
Subject: Re: [rfc-i] [Rfc-markdown] Problem with Kramdown tooling and figures?
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://mailman.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://mailman.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Quick status on using XML subtrees for figures:

— one problem in kramdown-rfc found and fix developed: figure tag, will be fixed in 1.6.11
— one problem in upstream kramdown (CDATA handling)
  Workaround: Don’t use CDATA
  Eventually: Fix upstream
— one problem in kramdown-rfc: svg subtree behaves differently from RFCXML main tree; standard conversions (e.g., id➔anchor) don’t work in SVG subtree

So there is some work needed to support what Paul is trying; I’m sure we will get to this in the next couple of weeks.

Alternatively/additionally to the XML subtrees, the code block (artwork) support in kramdown-rfc could be extended to directly do what Paul wants to do.
I’d need to know what that is to put in the support.

Grüße, Carsten

_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://mailman.rfc-editor.org/mailman/listinfo/rfc-interest