From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32858 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: Wed, 21 Jun 2023 20:04:35 +0000 Message-ID: <0daeba7dd8ba47c4ae51945307fd2597@unibe.ch> References: 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="38560"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBVVPZWSAMGQE75V7LFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 21 22:04:43 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f57.google.com ([209.85.128.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qC44J-0009rO-55 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 21 Jun 2023 22:04:43 +0200 Original-Received: by mail-wm1-f57.google.com with SMTP id 5b1f17b1804b1-3f9b003507bsf17407465e9.0 for ; Wed, 21 Jun 2023 13:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687377882; cv=pass; d=google.com; s=arc-20160816; b=yYfnnexUMK61NZwNhKQmY2slVLeB4AOWLkNJ4Y4Vmw/smgmtZ9kJiydIoTzwJ29dli ThAc/J9dMcSsh70g0Dv2yrYC5tolTjhxAWteHl0bpCm7S0aiqjbWi8qzTJlYmtpBMTx8 yXe7f7t3Y1eEpBMzXkMwgcx7p0/pEB2j2V3085A6GzZzzXuPfgElJcLbKmF1cmaNwTMW L1g2gCfSrgiFffkIuKqGj/Mvu3zNSwHAvb2ZVZKpOL6sglEYZXeSZ3tZx3EC4I74r2P7 MwjNWdIRc2OIduiZ3+umCWyoYWO/yimMOGg9qnB7cvcFYMtUJqGTXImnSQETF2FpOVsc vZQQ== 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-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=mGTYBIhnm5HzfoulVnsRHl5e5O0Z9hCDtl1jOTDLZ1U=; b=UyTHMrjjUMwobIFJkPJ38N4ErfWXfdLmTvC1Bx7tb8B/WaEa13APCCiew5akK1TGu9 XrXKMJ5RmBF/SPJGasyiuKUIGWxLIIZIjSdw/Wb92rCz6DeGTOjHNMUOL3WGU2ca/tru vl0rSp3hG0NUahw4FAZJfwmEkSLkQkm1+WPfnsPJq7xoG+UnndOzzqwcBK4RJK7QAkpx snIlBdVyAhXO0T8NqB27XvbtBXBjja8qQzFBMPHhVEMavc5nySq16ZD3wITXs2oAgwpj rxA36DD7RTfBMvx98OmjtmyYvsORSAGnqeQp65e02w8iosIYyz0CpDpjbCsFVDg59hD9 dBUw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=J8c44XIz; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.142 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=1687377882; x=1689969882; 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-transfer-encoding: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=mGTYBIhnm5HzfoulVnsRHl5e5O0Z9hCDtl1jOTDLZ1U=; b=LsOLDQQQP4PrabmJyXuQMM4NkqVG7tTbe/u9UAIsDpFpPOMhg88vHoCYCKugH/zmr+ s4Yl1XwA/c7e54MNtNQYNlEZI9Qs7GFstWf3Q1lB+eo+sdJJp4E5FaRDhQoMhulmaxOh j62yhIohnAHr3buvPyM0RvpOPv2ERLgW/+7+4LgwYv2H/XUmvLazZ86Q+Tw/768ld+NP lyb67W4OCppJ8UF2CoyHAG0bKTSruLok1GibsZ2E2BAAU5cWWZ70znjs X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687377882; x=1689969882; 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-transfer-encoding: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=mGTYBIhnm5HzfoulVnsRHl5e5O0Z9hCDtl1jOTDLZ1U=; b=Kw0hB2zVKS5azakscl5oT+SGTwgrIULuDWTdJjwQSZIYlAjs7HzmOHmV8rDIHpyq1q zU9r9B+K5a4N7aLgsPiCIV4vnmCJkTxjvh34VcTdpTV64ygyXMZS67cAb0+ZqDVq928b 7v9zVxfIq1tnU6NHYY2FvW6YVpxN6iejyFVyu2uPJFSCDhvOBnI7h6QCThYlrNMIB4t Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxA2QkLIz4oj6qX+tb1/0Jhye7nVtWYUAyS3ZDHnYeX8nHjBtDp jqz4tDkedbRy9OethrGdUkQ= X-Google-Smtp-Source: ACHHUZ5z4ZPpxT/RA7WW2KObKLlTKB2z0pEEvyLEVJ+CBAUbUIdeid3o2CriQbfpjN7SAQcFQBV9Aw== X-Received: by 2002:a05:600c:2043:b0:3f9:b85:2e34 with SMTP id p3-20020a05600c204300b003f90b852e34mr7645643wmg.26.1687377882209; Wed, 21 Jun 2023 13:04:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1ca8:b0:3f9:63b:fe3d with SMTP id k40-20020a05600c1ca800b003f9063bfe3dls20214wms.0.-pod-prod-03-eu; Wed, 21 Jun 2023 13:04:37 -0700 (PDT) X-Received: by 2002:a1c:7c11:0:b0:3f9:70f:8b99 with SMTP id x17-20020a1c7c11000000b003f9070f8b99mr9234164wmc.7.1687377877493; Wed, 21 Jun 2023 13:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687377877; cv=none; d=google.com; s=arc-20160816; b=ROUUpmgR2sKpi+mg7QcRPS9bd2DeigG77SgShHGQ0LCJ0sD1bFqxr1GJUkUOeKZ3W/ l6sYgAVm7WMB8YG1u1LPZCYfhGmXI7JbRj4bux2GIPWTr90wl1de5BEBR+VMqb+fqmHv /T4+aETr6Y5q4AS+BbQM9vGUr0wj3vSH3l0xGmHNP7YaGj/gSmRKpFrXDGViVWy1z+F7 p8yByNjk9QW6FDn0AidSNJvM8OT8y5pzKmngHBHK9Xh1TZRJ2e+FSzzsCodxRIluPKwZ qcfqQMK92OqaV2DWo9K48ZZ5O/JnC+iTEJLzNK/uxycmln5O8twCMLhRXhVCK29opa9C eVaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=2vhua6afBvctP20YUQEr+upmZWZVZD1lJAf1g3YP1mE=; b=Enjj27Zv4GaY6uNcyfc+H4QgewP6XQ21hnHUpSiOhLeD6LlfIzoY/nreblVaigJy24 qmFsCCxkOZMDAewC++hJAXTq/5/6HKVaayuNRRHW11lJwj6Pid+iCW89mo9YzeOG01Y1 hViZKZx+TYH5EDuSDV7UWnUEHwGms00H4NxD69Od1EmxNc9arGen0LGy9Q+zkzMINh/a ZArNE9u2w9UI8iirFZdRtNM1/p1j2ugBErtNph99D6PIsg93bE96d1sU8g7oZjSY8r9T R4x2TCuoztK5+pyQPlj7///+kmO49J10kQ9SpWcPgs2Evouk0J1FPV6hhg6EmlMDE9VH st4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=J8c44XIz; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.142 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-lb3.unibe.ch (mailhub-lb3.unibe.ch. [130.92.1.142]) by gmr-mx.google.com with ESMTPS id az14-20020a05600c600e00b003f605aae39csi302883wmb.1.2023.06.21.13.04.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 13:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.142 as permitted sender) client-ip=130.92.1.142; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 50DD250006E for ; Wed, 21 Jun 2023 22:04:36 +0200 (CEST) Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by AAI-EDGE-03.campus.unibe.ch (130.92.13.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.23; Wed, 21 Jun 2023 22:04:34 +0200 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-03.campus.unibe.ch (130.92.13.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.23; Wed, 21 Jun 2023 22:04:35 +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; Wed, 21 Jun 2023 22:04:35 +0200 Thread-Topic: Figure blocks in AST on Windows, but not on Linux Thread-Index: AQHZpHm5u5r0SVy3fUmSX4+SF0NQSa+VricB In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-CH x-originating-ip: [130.92.13.161] 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=J8c44XIz; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.1.142 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:32858 Archived-At: Are you using the same pandoc version? ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im A= uftrag 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 =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-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. --=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/0daeba7dd8ba47c4ae51945307fd2597%40unibe.ch.