From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32913 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: Sun, 2 Jul 2023 12:15:36 -0700 (PDT) Message-ID: <2341b40b-dddb-41bf-a482-fd112fe40f9en@googlegroups.com> References: <0daeba7dd8ba47c4ae51945307fd2597@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12672_384213207.1688325336735" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24847"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ25UWY24ERBWUZQ6SQMGQE6HLWSKI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 02 21:15:44 2023 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 1qG2Xv-0006BK-Ca for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 02 Jul 2023 21:15:43 +0200 Original-Received: by mail-pf1-f190.google.com with SMTP id d2e1a72fcca58-66a634b2cf5sf4241509b3a.0 for ; Sun, 02 Jul 2023 12:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1688325342; x=1690917342; 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=SVIymW0LFwyPJ6IEhFIamQQixCJt2A4ZdMOlzXqPjvQ=; b=BUWMknFUTcpZkgQmNXoooVFQg70VMZXax7Ph2XmADPBsEJob/21sEkljxADjCgDtTB PY3jQgXOpUVLJgn4HqnLdVPi8FLBDAl06f3tqyDm9Eh7/qANmZ0QzA/1dFiGmK+1PWYm lo/931AFX8rtsSwRe1nS5XH5vxbwWou54m88dDjTGHdJmn+c4GRTw4tjKdW5X+l0BugH TmeaiqijdEqDz4Vlv2ZpaugzpZbNVIYTqMtpnnuomKd0F1CmLjJmiv5ZDCoR8TKDnm86 vJSocmCSarYVa/ZRSxXgHaFZKiIjt8ecAOWrh4HNyaVnZgp53FVoAb5L7KMXGV8oqp7g wV6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688325342; x=1690917342; 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=SVIymW0LFwyPJ6IEhFIamQQixCJt2A4ZdMOlzXqPjvQ=; b=ZGn62S+yPfNHGg8SQMws6K0kDx/TwUKBxP8daoQ/UBJ1IkCeMskcLLSpYUz/W95oCv FIDSxG5YfBWYKxNBR2GYw1b7IV11MtbsH3LGgNRLYUP11PhBNF8nmt4Mw3qa7wr+87GA 1eRdAZ1vVtP2fXjOCZSq9ZW4YGl9UJQ8gup5WzYDYxEMQehyQ4qVf4mrjeaSqnZBcLNy OlEYWIvAgS9vvWGxS1w8tey16sW2o7mp6rWNkEBOtJXNwkOo8mFbgCBsUCLfvGDlzexI UuYHSPb0Z2LfCboTywQl/HRvsu6D3hFeosseTGBoSRbzAPCNoQi6Cixw2RwwTnC6QQHu vzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688325342; x=1690917342; 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=SVIymW0LFwyPJ6IEhFIamQQixCJt2A4ZdMOlzXqPjvQ=; b=BChu4tT/kbZ9scd2qw0vMmuBpy6F3yx5XMMB0fpZ/TUdPX6BFG7YAvTxrQVm1dWt+U MC3SnWf/VuKylaHs/PXz5ZFMNe3lL0QfdAB8YpFPtm/9TCyfy67K24Kprgeo55+8kfbZ tVAFeOxTc4J2Z6X22KOtVX1esV3MTTJhn+1OUmh3LGsK2PwlHlTf689y6WwRUKjbk1Ou IFpmzEb6IeayyxOn4w04rO9xejtHuSWFiSJaJPAYMir9qt6OZqZcrf4TpBIy9iczWmeg dYR5Ot6I5GalR0vZVEJanHT8nNy81dEuf0I/iWBe8KeMFGSLPR Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDw/SrHnP2j2Z0dzkkL5RhHBy180bNAyvCvBIsxq+dv+H4pBXU2n OEjKEyJeGOwKqhJZTT266k8= X-Google-Smtp-Source: ACHHUZ6XPIy0h4Ih7B5nk/vBhFeNnjoqFOXlOtz5ACOnsbCN6ziOI7e8Mm4Z2qsTEx6k41xZabKNxQ== X-Received: by 2002:a05:6a00:1d0a:b0:678:7744:31fd with SMTP id a10-20020a056a001d0a00b00678774431fdmr16797036pfx.0.1688325342009; Sun, 02 Jul 2023 12:15:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:8245:0:b0:666:e5fd:8358 with SMTP id w66-20020a628245000000b00666e5fd8358ls2268164pfd.0.-pod-prod-01-us; Sun, 02 Jul 2023 12:15:37 -0700 (PDT) X-Received: by 2002:a63:561b:0:b0:54f:d553:fbe6 with SMTP id k27-20020a63561b000000b0054fd553fbe6mr4854628pgb.2.1688325337685; Sun, 02 Jul 2023 12:15:37 -0700 (PDT) In-Reply-To: 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:32913 Archived-At: ------=_Part_12672_384213207.1688325336735 Content-Type: multipart/alternative; boundary="----=_Part_12673_357117084.1688325336735" ------=_Part_12673_357117084.1688325336735 Content-Type: text/plain; charset="UTF-8" Thanks, that's a good point. I have to check. I use Git as version control. denis...-NSENcxR/0n0@public.gmane.org schrieb am Montag, 26. Juni 2023 um 11:09:32 UTC+2: > Maybe some line ending issue? > > > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im > Auftrag von *Stephan Boltzmann > *Gesendet:* Donnerstag, 22. Juni 2023 15:10 > *An:* pandoc-discuss > *Betreff:* Re: Figure blocks in AST on Windows, but not on Linux > > > > 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-discus...-/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 > > . > -- 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/2341b40b-dddb-41bf-a482-fd112fe40f9en%40googlegroups.com. ------=_Part_12673_357117084.1688325336735 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, that's a good point. I have to check. I use Git as version control.=

denis...-NSENcxR/0n0@public.gmane.org schrieb am Montag, 26. Juni 2023 um 11:09:32 UTC+2:

Maybe some line ending issue?

=C2=A0

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...@googlegroups.c= om> Im Auftrag von Stephan Boltzmann
Gesendet: Donnerstag, 22. Juni 2023 15:10
An: pandoc-discuss <pa= ndoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Figure blocks in AST on Windows, but not on Linux

=C2=A0

This was also my firs= t 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...@= unibe.ch schrieb am Mittwoch, 21. Juni 2023 um 22:04:42 UTC+2:

Are you using the same pandoc version?
________________________________________
Von: pandoc-...@googlegrou= ps.com <pand= oc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...@googlegro= ups.com<mailto: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-dd= 1bb23f4c1fn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/e8c84ab1-4e87= -4580-bf4e-dd1bb23f4c1fn%40googlegroups.com?utm_medium=3Demail&utm_sour= ce=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 pandoc-discus...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f47ffa73-354d-4bf0-9abe-8f= f6135ea426n%40googlegroups.com.

--
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/2341b40b-dddb-41bf-a482-fd112fe40f9en%40googlegroups.= com.
------=_Part_12673_357117084.1688325336735-- ------=_Part_12672_384213207.1688325336735--