From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31817 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Auto-number list continuations Date: Tue, 29 Nov 2022 11:12:26 +0100 Message-ID: References: <87pmd7nuub.fsf@zeitkraut.de> <87cz96nryb.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000039e83005ee993a1b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21426"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBF5WS6OAMGQEQY7BIJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 29 11:12:43 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f190.google.com ([209.85.214.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ozxbX-0005Qv-J2 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 29 Nov 2022 11:12:43 +0100 Original-Received: by mail-pl1-f190.google.com with SMTP id o8-20020a170902d4c800b001898ea5e030sf5260583plg.13 for ; Tue, 29 Nov 2022 02:12:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669716762; cv=pass; d=google.com; s=arc-20160816; b=KU/DjZszZ2G+XBGh3Izp+sXbz04K5t6PYyDQ/5pSqoC2bTjZYJKVOZ2po+oy52EdK6 kKWyA5qHdgGnM90NUZKo2OQXq0D2tnF1869HxP/niAzVmKjP0qyGPGYnznF3XBahq1S/ BWRvMYPahKL2ngHCLwoEMJUnU/UrOYCn86bCMquiN0r+MDPcNKoGkAsUDmzgfoMbkn/w Zh9EUzE9la80S2jQPnoVlF3wcK0zHoH4Xcr7nd1XbjPtyEZcLh5VjFM1PK/li5COETU/ ZOqw9kKaiDTebKe9VH+slnQ4ianGdeBasIki3GtdZAK7/FyUz70/XjVF2LcAXBPpZN53 i6UQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=Mrz1CH52wWjbgP0tg9KIveuRbXscYvDiD2vJsX+D/vw=; b=uUmyBgpHAkQvNSGg+Y7D/aovMUe29hq52Rfo5L6gumATnzVynv9XyFrVZA4xz+aq73 apE37RpChzi1mqNM3ebtF9oZX8VaWi16k4OTfUjqZYklr3blpV+cTaT6uZj8P2vF1VOr gb6YKu2utyzyspiO7ikHF/Cy7TKi5nfLuAkdSBRJidywHrhc97jzJ89izvkaQvW78VHG d7w6mdAE2uHNpSK1xLf2ohh+rs4SBSeSaDgu5ZbC5BvPB2D0ktqyHaNm7duMpVme2jp9 XBpQQfVzHVsjIl0PMEFJpApUrVckXnehLNn1kCYc0uHVWdBLV/fSmub5wT4SRP3zefa7 ywrg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxAxFbD8; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=Mrz1CH52wWjbgP0tg9KIveuRbXscYvDiD2vJsX+D/vw=; b=bGy2KgOhCuM9inN2MEkD80J3DJICXFYoFxAyO/5sHwLClSzRyT6BCqFG+f6KX+TuvS 62mdi0OeWJ6re1ZbQKNVqSEoWHS8o3iLuSDta1Q92JBB0ooG/EXnI6k3zehViQrbVIzj kEESbXXj7SkHdLZ78AVstkSYRmuXzOWKp7hdgiyrJyvgbE0V+O3csCjr9wfzl/5SrHDj 0uP1saPP1pzfKjtigtZZ29rQWE6Awai/Aot4ziE3XgWNoTGPVwp+jzgUwmfMlfUJlrUn POgDb/ctWy2ytc+XehLaLVyf+xlG/u55HJ+xJw2MG9Tb8/uSachqN2qEjyNQPZSoqdtU 2QhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=Mrz1CH52wWjbgP0tg9KIveuRbXscYvDiD2vJsX+D/vw=; b=FhVyS5Q4FRs+ZCjGQUrKCYcWUcIotH4opHWwtcoQ/aLL+ft3Ip7T2pi4YhKMWZJYxn KrCRleD51rp51Zx0NswCFLubXNurxoUc3JnoQZ5ap7S8Nxfwlos1y+iqnZUbvYd3Mca7 usCOQ71fFleYBEmRVcqoB7uhHy1TE2G+koEvJh61xoHopIWCVa82bfLi5p/jxKWvpotV NZ0rrrlfqnj4CegiSlAs1BuiANrOWcKyBtWYzxLKS88YuzV4S033NEa+I0XiCtnCGKgC Io4ABvCEP+B90BBbMdCTalmsZXDwUPZT8h4rf/srKN68/k3llJjXp8HpVzGewKvCacLx jUqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Mrz1CH52wWjbgP0tg9KIveuRbXscYvDiD2vJsX+D/vw=; b=3KcpKU82O3g9Joeb75JE/WmDvjmlzLj4BpgRPgg9YGr8GCnH30tfEuHi1P2xHPdEkk WV8zXOC1mNPt+a5PyM0sAqjZRa+ors7MKfDTAT4BCPk5PaQDss0wk2I/Tka1j1NnW5U+ eqpw+H9mnroyneFH0U7j1h76eqny8VNR5VMD+zwZVySY4brgtvFlqQsq0gzOwieLObwZ O+ZjfuRiQ1a7q/BmzLl/yd672194w53FHvFWKt9JDIjojS5rHb9xHwE6Kr0aSrUBO7L8 L3C9sO3KT2BseGrkaTuUCpcKze8H7OV90l00z90uDyitx/ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pk2+6m0wL0OmIuykU4omciUvfwTqgSg5Mw8RxLQTMxTxMGFp9Yz NfMnlXQHKi3kZHeJcWkSwpA= X-Google-Smtp-Source: AA0mqf7Gqw4qI2dMqp1AowxLHMbtg1b64QBpxZgK7cXr0vOMTQAIjSXXPF8V5678UuYouRfZ7EVxwQ== X-Received: by 2002:a63:4a25:0:b0:46e:bcc0:c735 with SMTP id x37-20020a634a25000000b0046ebcc0c735mr48844231pga.483.1669716762111; Tue, 29 Nov 2022 02:12:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:c3c1:b0:186:9fc5:6c01 with SMTP id j1-20020a170902c3c100b001869fc56c01ls10488261plj.6.-pod-prod-gmail; Tue, 29 Nov 2022 02:12:38 -0800 (PST) X-Received: by 2002:a17:902:82c7:b0:189:736a:5e69 with SMTP id u7-20020a17090282c700b00189736a5e69mr17170194plz.37.1669716758779; Tue, 29 Nov 2022 02:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669716758; cv=none; d=google.com; s=arc-20160816; b=LoPnWwTIfRzVlAdIjwuo+IqQ0zR3y5mRatqzEMxXdKaWRXdK7Jxka25UvbHKftYOVO kruLR40893dSkLUlklodPty+XlNY0lwFc2FPysvBqspeo6EKY9prMf2SNFMGqljPu+GG hepfuIu62zESDbLULqTdEApVnAkS+3S4pHHNGARc3ADNgL+NYbYbhAHULzEKEF6GlskW bZaBNdP1ewwLo9mAghfSIPXiS2F72TD3V3mWzt875TbOEOoQhokcbfEL8WD0TLnNKzPY EK7AyjxqBICEZIKanEg70JJTAJLF7fXqbPDyBHmFOtOTcTvTu3p/njf0N4JjcTD8HVQz ormQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UMYsxU5icbjMlSEoEh6sKC2MypyzaHpbOT63fZH/JsM=; b=ez7janZmjpvAPqJ/KdRI5tOU+hQ3JM/KUrGdRiad/S03yUlqCe3rUk5XwnVlOPYReY hzuvOQvDRKETbckPWCqwudk3QmiUn/K3vEERxdmZRjEEItTMGjTpR2QlhwKQ8vPnlTxL vhXdJo6ZE0AYosBaep0TKjuWvNGbvJ5Q2u0D9UzcSAqDYs53fCSmT0xfRSiqGMzrrVwb wP9Ddnq7ac8zdzHV6eFNKgsqUKh8MUlv7u1h2y8wjPslTinOBuSTJjUXLwXZaCHphoFC fJOgI820NG1hgaAQW0KZx/O7Y28QmPb4aQM8ZTHd3Ou3R+L2qzZuKfdTSFL4T/ARmuq4 lhlA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxAxFbD8; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com. [2607:f8b0:4864:20::b36]) by gmr-mx.google.com with ESMTPS id k145-20020a628497000000b00573f624935dsi685185pfd.3.2022.11.29.02.12.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 02:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) client-ip=2607:f8b0:4864:20::b36; Original-Received: by mail-yb1-xb36.google.com with SMTP id d128so16790007ybf.10 for ; Tue, 29 Nov 2022 02:12:38 -0800 (PST) X-Received: by 2002:a25:b6c3:0:b0:6e9:a7f2:9686 with SMTP id f3-20020a25b6c3000000b006e9a7f29686mr34683991ybm.284.1669716757832; Tue, 29 Nov 2022 02:12:37 -0800 (PST) In-Reply-To: <87cz96nryb.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxAxFbD8; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31817 Archived-At: --00000000000039e83005ee993a1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den tis 29 nov. 2022 08:25Albert Krewinkel skrev: > > BPJ writes: > > > Den m=C3=A5n 28 nov. 2022 13:10Albert Krewinkel > skrev: > > > >> Just want to share a little filter that I wrote to automate item > >> counting in continued lists. E.g. > > > > I would have expected that you would need `topdown=3Dtrue` for this to > > work. Why not? > > Funny, I expected that too. I guess the answer is that the default > traversal order is sufficient because nodes at the same level are > processed sequentially either way. Also, nested lists of the same style > will lead to weird behavior with both methods, just in slightly > different circumstances: > > ``` markdown > 1. Bad results with default traversal > > > > 99. Should be numbered as 2. > > 1. one > 2. two > ``` > > and > > ``` markdown > 1. Bad results with `traverse=3D'topdown'` > > 1. one > 2. two > > > > 99. Should be numbered as 2. > ``` > Aw, you gave me an itch to work around that! :-) > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/87cz96nryb.fsf%40zeitkra= ut.de > . > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhCnk7oGbybmhBydO%3DVWBqBzqWS4UdSJywJTmKEDGxNTKQ%40mail= .gmail.com. --00000000000039e83005ee993a1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tis 29 nov. 2022 08:25Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>= skrev:

BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Den m=C3=A5n 28 nov. 2022 13:10Albert Krewinkel <albert+p= andoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> skrev:
>
>> Just want to share a little filter that I wrote to automate item >> counting in continued lists. E.g.
>
> I would have expected that you would need `topdown=3Dtrue` for this to=
> work. Why not?

Funny, I expected that too. I guess the answer is that the default
traversal order is sufficient because nodes at the same level are
processed sequentially either way. Also, nested lists of the same style
will lead to weird behavior with both methods, just in slightly
different circumstances:

``` markdown
1. Bad results with default traversal

<!-- -->

99. Should be numbered as 2.

=C2=A0 =C2=A01. one
=C2=A0 =C2=A02. two
```

and

``` markdown
1. Bad results with `traverse=3D'topdown'`

=C2=A0 =C2=A0 1. one
=C2=A0 =C2=A0 2. two

<!-- -->

99. Should be numbered as 2.
```

Aw, you gave me an itch to work around that! :-)
=

--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-disc= uss/87cz96nryb.fsf%40zeitkraut.de.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhCnk7oGbybmhBydO%3DVWBqBzqWS4UdSJ= ywJTmKEDGxNTKQ%40mail.gmail.com.
--00000000000039e83005ee993a1b--