From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32857 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephan Boltzmann Newsgroups: gmane.text.pandoc Subject: Figure blocks in AST on Windows, but not on Linux Date: Wed, 21 Jun 2023 12:51:04 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_64_1216468291.1687377064465" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10889"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ25UWY24ERBKNJZWSAMGQE6MI5OPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 21 21:51:09 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qC3rA-0002fH-BA for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 21 Jun 2023 21:51:08 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id 46e09a7af769-6b5d654cd61sf746754a34.3 for ; Wed, 21 Jun 2023 12:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687377067; x=1689969067; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=N21pZsBNZ+beGQiwPLQI9efwqr6KfDbq6bSz79CHUSQ=; b=qPg8ebeGrVJZMislGIAov5gVuLQskwkMYeXOR4wwSeXFIMki1hK4mhXk+S37k/oeyf YF75MnYdqdej8VHp4sZkENCCqW0Gu0E9/0MWIWL/TUv5w0bDofOrsdrnjVB2MIQoPcOo cl6tVOtkmXNIVLitLVJE2SIH8mx+iVsUsNEe37Mie6DPV8J4wdEizWf6CXOFmIz1UMvU K5Ixl59M1rjYyMYJ+lqZrmbNh9QOZQopZBXg3Vp/HYdpKUiNHOgqIGJANx3wbZRCdtH9 6J491ThYVRoajplGeelDgZtc6EJnoNEmKtMj9eim2Ldn17P9u5ZglXsUCCxDhpcxfW3y eT4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687377067; x=1689969067; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=N21pZsBNZ+beGQiwPLQI9efwqr6KfDbq6bSz79CHUSQ=; b=SZEO9YNzpZbZTHbkr3zJXSFbHBXcatzp13tuloEC6YG1IHFM0vBCEGSVBTr5LLp1d0 c7oRS5fl1fmn56mob3+LdOkVAprbNVrPCkIyyxhod/KwwBh38zNnQMBkdYHofFQEDXpV 64PB0hIA4Dswl+jhAq53hr7O0OBU//rXBRpvOyMmwQTWq9N+L2K3x+ZKACk4R9GZ4hWT F4MN1BtgirAnz80/y5Ojm1zgEVVGtc5ng5V39BkrGjAac9L8vRhitHGiibIsoHkGOYC9 SCqR65Sl0H5WIug7YNmswopE8FS4fwbaf0q1TtW4Dbfdg/qLwFYF4MfmjL6af2vhmOoX ZSQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687377067; x=1689969067; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=N21pZsBNZ+beGQiwPLQI9efwqr6KfDbq6bSz79CHUSQ=; b=BYNBkyds5Igm3Qiy7xJPqB6gAJgPGfmU09d+kk/lJOOH7nFtp3EADbre3uLnf3Wr0p vxZTS7JErJVPWup9CeaR1n979pqgogCG3C0VNmzCCEv45sahPP7OB47QSzy8HvsvCD5b Y9TaKHi+4yN+tQkrP0ElJAoCIuPU5YTBuD20yeK9dZE/MMqrxW23z1AQdgHwoaoGtagv vl4cm43n+/Rm1nU8nMkw/4gPaeQNVUsaTw51vEwaxf+6LV7CrT6HvJajSBfRy1f87Pqk AGdgbEC5dIfw6/09Nw/395cdBGao233+l/TP3J6UFk5Eogi6a/Z9ZaiDRuZQBinxDpco Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwx5liyuDe0yw9e+Mndb40/IhfHaZoPFzuoXrVxjsH+UMyr3/2C PK9zozrJ/KOq7twklOdv+BI= X-Google-Smtp-Source: ACHHUZ6PG81XGpCUw9iO+pkhuKQk4NqBuXzHmo9i8B/awXuoOo7uJfMSE10izAJRh5GdbkJ9wAv/5w== X-Received: by 2002:a05:6870:3a28:b0:1a9:adb8:81e3 with SMTP id du40-20020a0568703a2800b001a9adb881e3mr9866649oab.53.1687377067238; Wed, 21 Jun 2023 12:51:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:1b07:b0:1a6:c162:cf2f with SMTP id hl7-20020a0568701b0700b001a6c162cf2fls36786oab.0.-pod-prod-09-us; Wed, 21 Jun 2023 12:51:05 -0700 (PDT) X-Received: by 2002:a05:6870:5b02:b0:1a6:cd11:fa06 with SMTP id ds2-20020a0568705b0200b001a6cd11fa06mr3797266oab.1.1687377065007; Wed, 21 Jun 2023 12:51:05 -0700 (PDT) X-Original-Sender: stephan2boltzmann-Re5JQEeQqe8AvxtiuMwx3w@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:32857 Archived-At: ------=_Part_64_1216468291.1687377064465 Content-Type: multipart/alternative; boundary="----=_Part_65_1873646829.1687377064465" ------=_Part_65_1873646829.1687377064465 Content-Type: text/plain; charset="UTF-8" Hello everybody out there, Running the following filter function Pandoc (doc) nblocks = 0 for i, block in ipairs(doc.blocks) do nblocks=nblocks+1 end lblock = nblocks for i=1,nblocks do block = doc.blocks[i] print(block.t) end end on the following document --- title: Test author: Author --- # Introduction Some text ... ![Figure 1](image.png) prints a Figure block on Windows but a Para block on Linux. This would mean that the output of pandoc depends on the operating system. Is there a way to make it more independent of the operating system or am I just doing an obvious mistake? -- 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/e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn%40googlegroups.com. ------=_Part_65_1873646829.1687377064465 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everybody out there,

Running the foll= owing filter

function Pandoc (doc)
=C2=A0 nblocks =3D 0
=C2=A0 for i, b= lock in ipairs(doc.blocks) do nblocks=3Dnblocks+1 end
=C2=A0 lblock = =3D nblocks
=C2=A0 for i=3D1,nblocks do
=C2=A0 =C2=A0 block =3D d= oc.blocks[i]
=C2= =A0=C2=A0=C2=A0 print(block.t)
=C2=A0 end
end

on the foll= owing document

---
title: Test
author: Author
---
# Introduct= ion
Some text ...
![Figure 1](image.png)

<= br />
prints a Figure block on Windows but a Para block on Linux.=

This would mean that the output of pandoc depen= ds on the operating system.
Is there a way to make it more indepe= ndent of the operating system or am I just doing an obvious mistake?
<= /div>

--
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://groups.google.com/d= /msgid/pandoc-discuss/e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn%40googlegroups.= com.
------=_Part_65_1873646829.1687377064465-- ------=_Part_64_1216468291.1687377064465--