From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29207 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Corner case: Bullet list item starting with number with period Date: Wed, 08 Sep 2021 09:58:44 -0700 Message-ID: References: <35cb746c-1ee8-4fd4-b7fb-753caa8c5e1dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2008"; mail-complaints-to="usenet@ciao.gmane.io" To: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBUOX4OEQMGQEHXYL3WI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 08 18:59:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f190.google.com ([209.85.210.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mO0ua-0000Hb-5N for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 08 Sep 2021 18:59:00 +0200 Original-Received: by mail-pf1-f190.google.com with SMTP id g17-20020aa781910000b0290360a5312e3esf1729904pfi.7 for ; Wed, 08 Sep 2021 09:59:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631120339; cv=pass; d=google.com; s=arc-20160816; b=FsXPvuSkqvW3kDo9uAJTWqiTrFKJOFGEjz+7awVa0V18rx5WqEfq8Jc7Hdbt1jq/es PVYsCtPfHYdlxArxMCEVUHi8p+6STwp+7Oah92ZLlT7Nb5vU7Zw8J7KjJhC1gwyxEqFJ LyIuqEmD2j3ITN35uc9NGe+ZCBrDq4kfcDTGDgdiiknHxJwmCUJ4luACo/+fagW5UEr7 x7HDOdnkOcVWS+hRXynzorXQOzLLWR8gQU5yaou/JV7HwhBgqgRwWcZrMHB30Yoo+bKL RRItHOCbyVBAJX3nlVAFbX/MUxFRH4Z5LTr+3FzleBpDoP7CvfTgtV/bRB0eqYFHyKNz 0SbA== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=SaMU3M//rztgUi9Jl9a2oNBQscp35En0QjrT2zgXAdY=; b=elUJ57JU4NicQe2LU39IUHQqbPCB7kpDAV9PmJLhcEdqn3WBfNyCrgJJ1+1YtFiz/+ NrhZvinv0aCFSHd5zKXOauSBBly50ne4zv5R8BWOo5KEG4hf2gsr/Nmm8SlMEcioPVIe w05IQp3j25SsJhgAJdaywBHT1tUJnB5zVn6ozf2jF6pK5W4Ia2+qVrXaPMd5/bz2opFC TKgGc4ZzWvuueFs4Wq+WPRqos9aqnm7U3GFCBAdSA1Mg5g4mmJTnz6pTwu0G02a7S2E8 U2jvuwMylYg2Xt3PAFsw9AkRN/5zIIH0IZroWlx/5hnGq8sBdsoHNVPdbEUeT33s6nh+ gT0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ADeVLOp9; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=SaMU3M//rztgUi9Jl9a2oNBQscp35En0QjrT2zgXAdY=; b=mOGyeV7AF1s0NkCX7lNg+P8S1232pVL8QEeEENbkxSdUQ2AndLIr+E08w6W3k88AZY RjWs5Uq48myYXw+gkD9vaLqIEwIpDaZJ+wxI9mzuzI1weBglKY+y/sGj4GCaq4tGFnYW Zrxc3+i/Hv2OWF/MqQOnUgRWxoMG76PLomOPdl+ZXuUZpmT07DzKvoXeb8chBI7iuKpt avNue0LHBBn1pcjNYqLyXpHDUw8fkxj7hZfTIU2NkcQ+ao219mOfTmivlJEqXFOWYPr/ zLHs4vmOSl0APegSVKRWEQIBknJNfFrTueZdvaxoU1NS/rsb6m0acV/ScuV3ZPFmVbD2 ZeNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=SaMU3M//rztgUi9Jl9a2oNBQscp35En0QjrT2zgXAdY=; b=i/tvHUcakGhoXOgw7a2I9RJus8ErYOGu7N22MJ4NuU/CPDzcamcQ2IZnhtlCnmfxRS 0e6aQiBU1fIpYEP2UxeucQDU752fkdCWSkXdjWthAXvXP7T235p6oE9iD3cgwfqwCJEj 2gG6XujbVgrQPQ2dUiNi2dKFYeOESurLzMqWM62ULBXj2+6Pz5tI3HKaDPbldVLECAZt BqzQkXojOikBOXldYxPqwhW3vIBaPsI/tv9N/HiawC8Cc4aC0P2ASPQ4yGEQHLNw7oQz QbLvxRXKQ90Im+4UL+YkIqqe116AAxwLo8w0siZvI57CAB4gUUbXjPY36zrHXm/DGpMn f5Og== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533p054ry8RdAlBfIP+8tbG3tngBTjin0Ci61/2mpehP0cKsxqVv IDXBS+ye6p0r4TU2Ms9DtTA= X-Google-Smtp-Source: ABdhPJwz1dswGrllSOuLDqgC6AciPtOsr8v/1PpHd3ZMqiZwsrn1yj8CpVROptEzWTaRBnl4i8Wk7w== X-Received: by 2002:a17:90b:1092:: with SMTP id gj18mr5317564pjb.178.1631120338868; Wed, 08 Sep 2021 09:58:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:4c92:: with SMTP id my18ls1704663pjb.3.gmail; Wed, 08 Sep 2021 09:58:57 -0700 (PDT) X-Received: by 2002:a17:90b:1c10:: with SMTP id oc16mr5287109pjb.1.1631120337106; Wed, 08 Sep 2021 09:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631120337; cv=none; d=google.com; s=arc-20160816; b=sx1aCuoNRJCo7D0XgkKt1oUf5l1YxYBo9VgEtjgzQAzJ94rfNCOo/9isIe973sCO0c CbFj5ZJUe69JExgJUk7wqw9EhXUEeMDROvruDKsEsmxLtiGpBmMiQGkCKjiILzJNkVzF tJ04gB/OulLNHP6elSJvosVpSjn6wZk5veWfMG6Ob0L8yRvliyjc1vDmUyIcSBvYU8HP cnqbAS619L/ttVwxCl7snviHqrchGDWnxJrPKg6dnZRFS/wd6IyWNbYrXQ6kuVuzPHxL I/SEjre03iLN6S1ZRPiFbbcuuh5LUp1gzjpxwub/B4G54AL37eUdVCttZAOsX1iIgU7L dpRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=XUBuuV0zKm8WyKjg996cFsl54VSNYcJIkh8ny3lTgE0=; b=flHyc1Th/0mbZ9a5qfJ4QPJR0uY97fO2D3oUYZ/DSEi2230UOpNpMg9ucuWSctSzxn LbnPon6H9vIROFAq6jXLT+7hghlMBy9CuBJUiC/Y4IKvCqtxE/M8VsN9c2d199jP5Rmo egzMnQ4t01VeiWotMUq+TYAu/8F9qTYx1lip7a31mxfnbP4PNsAXZVwIgOJFI5HQ7NNd TLrYPY+0u8g6wwlfYSuTUnx17SWMmsqZz728vjcPrKd1gdoMFLbAlgnQIQx4jo6BN7IO ywOBkoZrBdnPA+OT+ougRWKKcBAqx/WCpeCHjA4XntpRL/2ZE2oIUcVnWJKQgmTUhnHO BWzQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ADeVLOp9; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com. [2607:f8b0:4864:20::431]) by gmr-mx.google.com with ESMTPS id y2si256776pjp.2.2021.09.08.09.58.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 09:58:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) client-ip=2607:f8b0:4864:20::431; Original-Received: by mail-pf1-x431.google.com with SMTP id q22so2617038pfu.0 for ; Wed, 08 Sep 2021 09:58:57 -0700 (PDT) X-Received: by 2002:a62:14cc:0:b0:408:78f4:9b37 with SMTP id 195-20020a6214cc000000b0040878f49b37mr4731733pfu.13.1631120336398; Wed, 08 Sep 2021 09:58:56 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id w24sm2792005pjh.30.2021.09.08.09.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 09:58:55 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id CD434A1A8; Wed, 8 Sep 2021 12:58:44 -0400 (EDT) In-Reply-To: <35cb746c-1ee8-4fd4-b7fb-753caa8c5e1dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ADeVLOp9; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:29207 Archived-At: If pandoc renders this differently than Emacs interprets it in org-mode, then it can be considered a bug and should be reported on the tracker. "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > Recently I have hit upon a corner case which (I guess) wasnt probably > thought off. If you have bullet list item like so: > > ```{org} > - 11. and 12. 09. meeting > ``` > > converting to pandoc AST yields (ran in Try pandoc): > > ```{native} > [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[Plain [Str > "and",Space,Str "12.",Space,Str "09.",Space,Str "meeting"]]]]]] > ``` > > removing first number. > > Running this: > > ```{org} > - 11. 09. meeting > ``` > > removes even more: > > ```{native} > [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[OrderedList > (1,DefaultStyle,DefaultDelim) [[Plain [Str "meeting"]]]]]]]] > ``` > > Meaning removes all numbers, whitespace, periods until alphabetic letters. > > Markdown conversion acts a little differently -- anything that seems as a > start of ordered list is interpreted as such: > > ```{md} > - 11. 09. meeting > ``` > > produces: > > ```{native} > [BulletList [[OrderedList (11,Decimal,Period) [[OrderedList > (9,Decimal,Period) [[Plain [Str "meeting"]]]]]]]] > ``` > > and > > ```{md} > - 11. and 12. 09. meeting > ``` > > produces: > > ```{native} > [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "and",Space,Str > "12.",Space,Str "09.",Space,Str "meeting"]]]]]] > ``` > > I guess that pandoc is making a pretty sensible assumption that all those > numbers ending with period are starting new ordered list from different > number than 1. But that breaks when using dates in start of a bullet list > item. > > As far as I know pandoc doesnt have a "date" element, and I also think it > doesnt need one. > > As proposed solution I think that another check in readers should be made > that all text after bullet mark should be considered regular text, until a > linebreak; or 2 linebreaks with text starting in column 2 (for items > spanning more than one paragraph). > > I have hit upon this when converting Org mode to docx, in where the first > number is actually left off totally, so: > > ```{org} > - 11. and 12. 09. meeting > ``` > > results in: > > ```{docx} > - and 12. 09. meeting > ``` > > Which in my opinion is bug in all instances. If it would render ordered > list in bullet list (as it should with): > > ```{native} > [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "and",Space,Str > "12.",Space,Str "09.",Space,Str "meeting"]]]]]] > ``` > > it would be easier to notice, at least. > > Can this corner case be resolved better? Should I make this a github issue? > > -- > 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/35cb746c-1ee8-4fd4-b7fb-753caa8c5e1dn%40googlegroups.com.