From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32864 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephan Boltzmann Newsgroups: gmane.text.pandoc Subject: Re: Figure blocks in AST on Windows, but not on Linux Date: Thu, 22 Jun 2023 06:10:02 -0700 (PDT) Message-ID: References: <0daeba7dd8ba47c4ae51945307fd2597@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3322_1122511099.1687439402518" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16866"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ25UWY24ERBK4Q2GSAMGQEPCCX3AY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 22 15:10:07 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qCK4c-0004EA-O7 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 22 Jun 2023 15:10:06 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-18f07a9204asf5773791fac.1 for ; Thu, 22 Jun 2023 06:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687439405; x=1690031405; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=vBAnHxaareD6K6chcx/5eY73BrbydywLnS9cTYjHdEE=; b=hDaAiCIslcvGpvNNJ5btJU6b5IybgRH2inejFIScGeP+4dbFzVie2IRWjFsF/++R+s iYGp6bd6HMplASg8xWgvxKk8gkI8ihrNo2NdyCydSdc3hnEfxCgQl23UEaODmcfo3Kh9 2vK+JJ2DaEbH8UGydl4GqJYxukJ0WETdWsVm+0AEWkBd60VquYavvI3GlLm/fypLiqVO l8Vo3KkZwdySHYX7omtNc7ugLIT8PfLgyEHYMGvZVtsN2AN1D4XbktD/QPjOa65pQq9m 8OGbJErmH73L/PwlB2LclZOXq84sO5OjuDWzSYYbBbTvUUUt/qAYLGAEjy9mq5oJPRjp qN3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687439405; x=1690031405; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=vBAnHxaareD6K6chcx/5eY73BrbydywLnS9cTYjHdEE=; b=AdOHHGeFFs0ioKwPFh+mlo1zdeoop/wtdxMH92n4gkrCNGIaf864UXJhkzm5pALcIq 1f1wRkWjvThFfaJk8dAHH72ziquap/eZYQiTtF9gfb03BTRkyLylqxcjhyOVZ0QROLYx 38KYnvXGm2hGxZHAlQ6sDdapDIFwq/I790+3x/a7WOhG47/RfisIvrpxSNgxUQFtp9DN ABkXqCPbGBr/21sgrVxP9p6BjZs5hmIVQYhW2HL7x0iGLp8PDgvCFuw09i8X5794r0em w19mbmUNPW4GrVW37j7z4dw/N4tkRMnjCXyCT6sLjPUiqjEqnhroABCF9HsQXRzqnWxh DPkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687439405; x=1690031405; 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:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=vBAnHxaareD6K6chcx/5eY73BrbydywLnS9cTYjHdEE=; b=mH6RSl+xKR0B7gpBE0B0H86c6PTnx6OW5wkNL9K+eqobWIvGyrQG6rq4tGlelJfG75 eLVafosXD6dHxtH6YZ1vMY8u3k3f+fHX+VRBrRPW98ixzQ4XMH0xUIledkpG68EkqKmI VY7YhIGWQYY+bHS75VudOc10sV2ziRr4pijrSDLhP8skQA8uryrTLyBOT7wwEbaAb/6P NOaCZiFAGrWil6fVSuaupg198Tb3I3zh/RfALbRV3xfyDfXVxkslvSH3fniBkCIkszWH mgjqXwnabckphRMPvk8IbNYh/RnFmaysd5K4g/nHu+xuBXm59p Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzKhjicbY69yOBer+UaGByqsXr0ic2nQUaK8tPdo5ddghZl07A0 EfUEEv9c3U3vrkoa6S1lDlc= X-Google-Smtp-Source: ACHHUZ4R5hVC9ubZuEGgOa8luyGJIDiqjuZHnUUBim7HjkFBU4iGSZQC45MMYcUfPehONgX0zDBlaQ== X-Received: by 2002:a05:6870:d884:b0:1ad:379e:6b5d with SMTP id dv4-20020a056870d88400b001ad379e6b5dmr1250915oab.10.1687439405615; Thu, 22 Jun 2023 06:10:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:be0d:b0:1a3:4345:7008 with SMTP id ny13-20020a056870be0d00b001a343457008ls1017058oab.0.-pod-prod-04-us; Thu, 22 Jun 2023 06:10:03 -0700 (PDT) X-Received: by 2002:a9d:74c8:0:b0:6b7:1188:a5eb with SMTP id a8-20020a9d74c8000000b006b71188a5ebmr139313otl.5.1687439403146; Thu, 22 Jun 2023 06:10:03 -0700 (PDT) In-Reply-To: <0daeba7dd8ba47c4ae51945307fd2597-NSENcxR/0n0@public.gmane.org> 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:32864 Archived-At: ------=_Part_3322_1122511099.1687439402518 Content-Type: multipart/alternative; boundary="----=_Part_3323_267139103.1687439402518" ------=_Part_3323_267139103.1687439402518 Content-Type: text/plain; charset="UTF-8" This was also my first idea: I'm using the pandoc binaries shipping with the latest versions of RStudio (posit), therefore the versions should be identical or at least not too different (outdated). denis...-NSENcxR/0n0@public.gmane.org schrieb am Mittwoch, 21. Juni 2023 um 22:04:42 UTC+2: > Are you using the same pandoc version? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > von Stephan Boltzmann > Gesendet: Mittwoch, 21. Juni 2023 21:51:04 > An: pandoc-discuss > Betreff: Figure blocks in AST on Windows, but not on Linux > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org pandoc-discus...-/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 > < > https://groups.google.com/d/msgid/pandoc-discuss/e8c84ab1-4e87-4580-bf4e-dd1bb23f4c1fn%40googlegroups.com?utm_medium=email&utm_source=footer > >. > -- 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/f47ffa73-354d-4bf0-9abe-8ff6135ea426n%40googlegroups.com. ------=_Part_3323_267139103.1687439402518 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This was also my first idea: I'm using the pandoc binaries shipping with th= e latest versions of RStudio (posit), therefore the versions should be iden= tical or at least not too different (outdated).

denis...-NSENcxR/0n0@public.gmane.org schrieb= am Mittwoch, 21. Juni 2023 um 22:04:42 UTC+2:
Are you using the same pandoc version?
________________________________________
Von: pandoc-...@googlegroups= .com <pandoc-...@googlegr= oups.com> im Auftrag von Stephan Boltzmann <stephan2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Mittwoch, 21. Juni 2023 21:51:04
An: pandoc-discuss
Betreff: Figure blocks in AST on Windows, but not on Linux

Hello everybody out there,

Running the following filter

function Pandoc (doc)
nblocks =3D 0
for i, block in ipairs(doc.blocks) do nblocks=3Dnblocks+1 end
lblock =3D nblocks
for i=3D1,nblocks do
block =3D 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 syst= em.
Is there a way to make it more independent of the operating system or a= m I just doing an obvious mistake?

--
You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...@goo= glegroups.com<mailto:pand= oc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e8c84ab1-4e87-458= 0-bf4e-dd1bb23f4c1fn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/e8c84a= b1-4e87-4580-bf4e-dd1bb23f4c1fn%40googlegroups.com?utm_medium=3Demail&u= tm_source=3Dfooter>.

--
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/f47ffa73-354d-4bf0-9abe-8ff6135ea426n%40googlegroups.= com.
------=_Part_3323_267139103.1687439402518-- ------=_Part_3322_1122511099.1687439402518--