From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31644 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: LaTeX to Markodown: nested lists converted to code blocks Date: Tue, 25 Oct 2022 07:31:49 +0000 Message-ID: References: <87zgdk5q6q.fsf@example.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36147"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB2FB32NAMGQEADQD72Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 25 09:31:57 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f59.google.com ([209.85.208.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1onEPk-0009Bu-2e for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Oct 2022 09:31:56 +0200 Original-Received: by mail-ed1-f59.google.com with SMTP id b14-20020a056402278e00b004621a2642d7sf627426ede.1 for ; Tue, 25 Oct 2022 00:31:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666683115; cv=pass; d=google.com; s=arc-20160816; b=vBOXbusKHxXhHchAUTNpFAOS/vahEwLjPQAhlSIQyXEF4AayJO69uMKz55T12GUM/Y rHVsypLYssKynY500jPqsSdR4Vnn8UzVjjNgBWOH2R1mGIlhY1sGSACVTcvh0UK6y1aB IuOOas4LSjasLukOYUa7pYZihosof5kt+bZW6ezGJAzVqtg0QvYyU0G6f5DQfOaKohyb Wf6yc8nQw/IvltnKVGD44ZHkzaZC7uwA3rOplXfYLbSNtt/r+SBqMqSQYpTJomYReyIJ p8GXKutth/RBb/i0Jlbnt22zJpqKlfuNcwfamVAs0iVbp6uS0bfqxkpIGhtPYCkPbDQL dT2g== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=do2evbEYHUIvHAUvM0NEiIdo24C9INQVoSIRAZE3GEY=; b=fxPI5v3vo9dj9qiXIAGWB0LclqCiZy3AcxTpnBKpyLh4jCqn5aoqOgWOHu1JlOrDSc Q42crmDZgMyqr6Qau/dmqIqdltjn48savauTcx8yQSdK5lBZPvz9lunVqpSAzZk32fZF dCuPAMXMis7fl8+qlxe9Np13zMdTd1AsVExZm7s+xqIpxw1D+9GSXmTpaFcQXgCBaWEJ omX8/psgw1NQSbHWXrE75Ykq/wYx3XnUYmhGLkY75VrKCe3Q4y/OgP6Jj62s4Q8jnlyK L0YDOEx/NmDRZ75bB48RVSO6xoK7BnlPiV11XR2nLQuH781qwiUOYI5cPRiBiUzPIT9d eaGw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=AiERU4De; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=do2evbEYHUIvHAUvM0NEiIdo24C9INQVoSIRAZE3GEY=; b=n3nDckBeXvM8dulPxcHAogsUWrceEYunD4Nu36/CCPFCY3ReP/SVf8zpKkhqqXI50G O6iCrvp2PMWBKQJ/DpFk6hJ3R/l8IJ0/nwXnRdhxVYjUmarMKpXyyE1Be7WcB11zTzm4 KHEh3ulczDDjnNQCnvaXvA3Y7s9UmKFl8futxUIqFyjKuTc2LhRKWH5yAAppuvhv9QHo pycrpz1SBw0o25tiIi/EZ37xo8ngGXj3rOve8aKzKikjoH0SaeO9BRfQ8Nc2D9fnUCXE CxmRI4sREFkJzlYlPci/7XGIjDLlBp78QKYID+LhH8Dvy 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=do2evbEYHUIvHAUvM0NEiIdo24C9INQVoSIRAZE3GEY=; b=hpoBtCkmB0tFBPoVSbkXEoD5JPLHl8l2JwqkxQq67hXCHNomuH1mMeq0IewGXMs7gr zQGm3wBySDxkzaGwNBjau7xUoGKFqpUTwv6Iyp7UpMjrfhu255QsEjxYtwc7qk8e5aX4 rvwhCn0hCJGsVhQQ4XFEg7zOWdbYR/Tzp715RbmCqmFnKW0iTey45kET2+nXdMQrVt6g MkviQhl8ds4uC/oNJReFpD5ntU9eArn7RbjmbcYotjzoV6f5rQSkXDokuP/LiKvdF2Vz Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2wrsjfaPTPAr9OtEZ822hZ+zRNajqhzVvMW4Z5wT5AT746sjrJ l1Z367ORV3GJVIdUtxOD7e0= X-Google-Smtp-Source: AMsMyM7fZizvMcuQ2w5VEHzCYRD7W+VRWBm7df12XRJkverRamqWRUjq7r1WglXjEXuPf5oiK6TsGw== X-Received: by 2002:a17:906:8a4b:b0:7a7:3e17:7f91 with SMTP id gx11-20020a1709068a4b00b007a73e177f91mr8924871ejc.331.1666683115707; Tue, 25 Oct 2022 00:31:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:5f98:b0:7a7:f2a:d325 with SMTP id a24-20020a1709065f9800b007a70f2ad325ls2741191eju.10.-pod-prod-gmail; Tue, 25 Oct 2022 00:31:51 -0700 (PDT) X-Received: by 2002:a17:906:8457:b0:78d:b793:5511 with SMTP id e23-20020a170906845700b0078db7935511mr30937668ejy.393.1666683111218; Tue, 25 Oct 2022 00:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683111; cv=none; d=google.com; s=arc-20160816; b=fzo9YKCLmq2mbJ5ZIehbVkxq4cRoZZIr9G5QX3EngUNrpajljIc7Nv8e8tBYRTSowR lRIHt4QLVxcutV/jXi+Vy0hOkEuQHXTb5VFRIZ+O4r2hBMhBNjO7FSU8j/rS6+oSqSfO +ZbrcrpowArP9flZavwWaQUWApiH+cuQfNgYDTitLm7MWZCZJAzx8G8m2N/2JrvBUBSm KqeYkIJWwXFabwPm7XRDGoVmfhf+OvYdjH3aGLD1sYJp9S1otzL2hUXlA1+eZ9snqV7F 8Gi4QUxZ0x/yQqYp5405dzGGBf6coVpyoiophlTOiSwdbGNu7PxVdm3erDP++PR9QywC f1yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=5GkpRtetE1822aWkGEi7iwycsMz5fhjM1j9xn/BouL0=; b=PMO0c9gC+ecuvYXQHWW3Zj4QN8V9DAmi3nnBGgRwYq/BI/iqP/kxXSQR1HG/YZe3YQ XqagV9CgPoTmb1w7oM2CiEOYDUErKei9hedSxMiH02x4o7oqSTUDR9LgjujUmgnjd0Xm EBAY1NKe5jUVsKCrKWdRgwsoP5huPC+NY92eX36ON4vL4nG+pZDCtyyLVNfrdytRfo2S 7oj1W66us+id2jy3zIwSZFAVRqushyCP1LTLaObHPZAFuaBgGP+11fQsxLd0iFbFF3e7 nQAwzgl73yIoqLWMipQXcj7eF80W4bsvQp3U1JSaBusA0SCAONUGCMewYDNcCE4axOaL MhYg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=AiERU4De; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id y13-20020a50eb0d000000b004621a13c733si32166edp.1.2022.10.25.00.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 00:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CF777240108 for ; Tue, 25 Oct 2022 09:31:50 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MxNtG1qDbz6tlh for ; Tue, 25 Oct 2022 09:31:50 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87zgdk5q6q.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=AiERU4De; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:31644 Archived-At: I don't know how other markdown processors would handle it, but if you pars= e the resulting output with pandoc, "Bar" will be recognized as the first i= tem of a sublist. For it to be parsed as a code block, it should be indente= d eight spaces. Le Tuesday 25 October 2022 =C3=A0 09:15:57AM, Denis Bitouz=C3=A9 a =C3=A9cr= it : > Hi, >=20 > consider the following `test.tex` `LaTeX` file, involving a nested list: >=20 > --8<---------------cut here---------------start------------->8--- > \documentclass{article} > \begin{document} > \begin{itemize} > \item Foo > \begin{itemize} > \item Bar > \end{itemize} > \end{itemize} > \end{document} > --8<---------------cut here---------------end--------------->8--- >=20 > When it is converted (with `pandoc` 2.19.2) to `Markdown`: >=20 > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 pandoc test.tex -o test.md > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >=20 > the resulting `test.md` file is: >=20 > --8<---------------cut here---------------start------------->8--- > - Foo >=20 > - Bar > --8<---------------cut here---------------end--------------->8--- >=20 > >From the `Markdown` point of view, the nested list is a code block, not > a nested list. Would it not be separated from its parent with a blank > line, the problem wouldn't arise. >=20 > Is it a bug? Is there a way to prevent these blank lines? >=20 > Thanks. > --=20 > Denis >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/87zgdk5q6q.fsf%40example.com. --=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/Y1eQ5cOKQHJfkD2j%40localhost.