From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32873 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Figure blocks in AST on Windows, but not on Linux Date: Mon, 26 Jun 2023 09:09:25 +0000 Message-ID: References: <0daeba7dd8ba47c4ae51945307fd2597@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_e9f4c3ace99b4e848445fb7e754d1868unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3636"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBSFL4WSAMGQEQGIQNMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 26 11:09:33 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qDiE1-0000jU-8D for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 26 Jun 2023 11:09:33 +0200 Original-Received: by mail-lj1-f189.google.com with SMTP id 38308e7fff4ca-2b6a6cb42f1sf766991fa.0 for ; Mon, 26 Jun 2023 02:09:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687770572; cv=pass; d=google.com; s=arc-20160816; b=l+mzPYbAOJ/2Lb8H8RoTuwK9sfC1Zv0+ehva6rw6JyO22t40P7P3na13NadF71B54n aZ7aLmQdwrHRhSQ8LzyQ1sdSPaCzuNsQ1BxLimtGlZIf+CeKXKPeykV0b314zTxSkkY9 oNAlp1ulznza8zDfJJrZRLvXWK5WCAIL7m3ep76baciGed2AOdJRc+/R5zTxUS+xOpn3 DiwxjM+aG68qAbRX7NJDs8R3kJDhPDtfjVrAIPkzlP1k4jXnkJXAcOlAX5bLXNTP7Yzo siobVUgY4k6yDFEC1pXPvjXo0ZdF82g5ttlm43n0Iec3R13nY0Qc1nn/m/vIv/JoGMD5 sVTA== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=neR1Rq30L0GOqVxTOsgpib4AA8tqYqvZoRVffmu0OXc=; b=nMWet8rIQrTZXJUBzIPJvYyxpq50uHLQ9W1LL0VjKw9sM1rg2mXWqmJF4ZgElH7o3D wRpepKUIhoPKlf2s/4Qh8h2TFih7VhCM5M8Q6XxDHKUJ1ESMeTk9dCi510dojDq4GeXd /xJXGpLas5Lg+T5WBvKInyu14g439N/QLxaO6ecFvCl6WtUq6CmZBLAebz+Mi4mNFdok s74V0LiKjq41OBWOKXPXdZNpBb4xiwTLbZ8TbsHo2cWEoW0cWIsquLEeOGJ3o4w4pTQl RufPyzNGxcsH5exZZyJLc7sTh9d6cnekRAWIwkVbLc0QiHW7dD1XkWIXVtkOo4T/S/N4 /jDQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=fI9lcZmd; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.141 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687770572; x=1690362572; 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=neR1Rq30L0GOqVxTOsgpib4AA8tqYqvZoRVffmu0OXc=; b=HUsQI3ESDIu3j9H+70j77YHYeIuoLbS0Ohhr9iiOuuGoNJhgvCZU0q4AcMLfFZSlwQ 7U6pSiF19gPG+kkwRSuJcJqrVga0YTnpYG3jji/cXAfSNYYgRKbQEND2iCAWSMcgYXYV KchVfXM9Op3AxPsngdTLwd9U3WQMRPr+r6Xj8e43ZbJwWaUbeYtsFzyE8zsO/Y1apZMg arOYvHAEkbG8usmEgCvC8/t53fqHxXtvdVnDD0qYGz3meQNbo0yj4Yx0SAzz++nDurC2 Xf7X X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687770572; x=1690362572; 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=neR1Rq30L0GOqVxTOsgpib4AA8tqYqvZoRVffmu0OXc=; b=ZJoSBS2s0LakUoJJCXhhegcRELGhIkjU6RihFfwTIngMC8knkiCkyQmiKmGwI14qgT vNnu+iF22lmCuXQQfzsX1HnXY1p3P04I3F8wC40A/5PT8Wmw11xMvpaedOxiaBcb64RZ 5btvuv49qNwvA+12/3SgMHxVJoY62J6tfRvU55jx8OPFYdKxjq54Fh9uGbabRmdXCm3t P1TSMIJdesvXE4U Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyWOwOTRgLPkrCJ8FOvyihw/ePyy3SVyPoisDGlOdeYtTY7TkEh n1AFaYBvQ12ozeUIp0g1JPM= X-Google-Smtp-Source: ACHHUZ6fSyuuPUzZ7F7TBB/7+u5HX2VKAuCtADqJ6ezgJ7OhYBgZpq0P3G6SSABmHFCIn8dMrqFkYg== X-Received: by 2002:a2e:8e8a:0:b0:2b4:8239:b11e with SMTP id z10-20020a2e8e8a000000b002b48239b11emr11385180ljk.37.1687770572424; Mon, 26 Jun 2023 02:09:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:8613:b0:3f9:1f8:6c78 with SMTP id ha19-20020a05600c861300b003f901f86c78ls772654wmb.1.-pod-prod-02-eu; Mon, 26 Jun 2023 02:09:27 -0700 (PDT) X-Received: by 2002:a05:600c:224b:b0:3fa:96ad:5d2e with SMTP id a11-20020a05600c224b00b003fa96ad5d2emr1468895wmm.19.1687770567250; Mon, 26 Jun 2023 02:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687770567; cv=none; d=google.com; s=arc-20160816; b=U4BwmpfodUSUHZu0qAV9yeSTxZy1illEj8BH2cNJ61jrGJB8FCWhtRnIkhuY5FO9i5 1hdH9Zr9xL/kWTxTLmhLJlAHRD7X+RZy7W6af9O0mr2o/kdbV2RMVdf/Sa6HCjDdILVs I34sHrAscEohQh4kkpjGbejsEkhybyubMZkQrNOdwoIFXGuJXh2+SUvGqzBOksUytV1c 0QXlAgeHMtS38KYdIGa1g1Lqlh5yAlNG6O6BWV3gX41tNsHSr34wIAzxQ7g6ROUNe6x3 /9E1/Dzq3jbvrd0z++lCImzHAMPZ2AT2liJAuIjLJZ2NdxuvZbOyCybCOwYjVXpcRxnr JKiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=czpL4RHSK040kz7cSk9OJMD5WxjmjeXiJZhaiH3ostQ=; fh=UyxIHVUYZvjWyFF68CRt+7uyuGox5bGx8I7lV7uHzjE=; b=CKUeNmNusP4oVJA1kZpvS4EeuYfVzXvNdwC4qoDdcTdsrB18DVdLvdaMdBiiYlHLwL xZG4l4Kq1AmPjnzYNM2iu2S7bN9qMT52eDLUd+HiWMXz3POe8yusGZAw1yeOqTg4GefF ceWCaJOqrsO525MMoC6jqTeGhM8CJnsVSxaGIS4yFK6/uZTnalBEH5BUF27dUC23e4Hn 25jkLxcJ36CBrsYZPdmpTU/oivD7AO1O4M0Rv/fmUZUVF57VhK7Tx4H9IsuTXq0HYOJO QaOB+UBPoGyrYTpPtTuZ5f+jIaqx24JVvLfM6MSSBJePZdRYz2IKptFsu+Ao2GT59zvZ xvtA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=fI9lcZmd; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.141 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.1.141]) by gmr-mx.google.com with ESMTPS id a16-20020a05600c349000b003facc8c7725si50369wmq.0.2023.06.26.02.09.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 02:09:27 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.141 as permitted sender) client-ip=130.92.1.141; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-04.campus.unibe.ch [130.92.13.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id F04C05000A3 for ; Mon, 26 Jun 2023 11:09:25 +0200 (CEST) Original-Received: from aai-mail-04.campus.unibe.ch (130.92.13.169) by AAI-EDGE-04.campus.unibe.ch (130.92.13.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.23; Mon, 26 Jun 2023 11:09:19 +0200 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-04.campus.unibe.ch (130.92.13.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.23; Mon, 26 Jun 2023 11:09:25 +0200 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.023; Mon, 26 Jun 2023 11:09:25 +0200 Thread-Topic: Figure blocks in AST on Windows, but not on Linux Thread-Index: AQHZpHm5u5r0SVy3fUmSX4+SF0NQSa+VricBgAD9EwCABieKEA== In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=fI9lcZmd; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.141 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:32873 Archived-At: --_000_e9f4c3ace99b4e848445fb7e754d1868unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maybe some line ending issue? Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag 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 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 2= 023 um 22:04:42 UTC+2: Are you using the same pandoc version? ________________________________________ Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag v= on 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 =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 "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to 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. -- 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-/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. --=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/e9f4c3ace99b4e848445fb7e754d1868%40unibe.ch. --_000_e9f4c3ace99b4e848445fb7e754d1868unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Maybe som= e line ending issue?

&nbs= p;

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

 

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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftra= g von Stephan Boltzmann <stephan2...@gmail.= com>
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<ma= ilto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org&= gt;.
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-dd1bb23f4c= 1fn%40googlegroups.com?utm_medium=3Demail&utm_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 pandoc-d= iscuss+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-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/e9f4c3ace99b4e848445fb7e754d1868%40unibe.ch.
--_000_e9f4c3ace99b4e848445fb7e754d1868unibech_--