From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30580 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: K4zuki Newsgroups: gmane.text.pandoc Subject: [ FYI ] testing PANDOC_VERSION == {2,15} doesn't work Date: Thu, 19 May 2022 05:03:34 -0700 (PDT) Message-ID: <99207986-698f-4f37-9827-e5ea5b6c40e6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6374_599801626.1652961814683" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30270"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCY7J2HL3ALBBGHETCKAMGQENZPIF7I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 19 14:03:40 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nresV-0007lr-Qi for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 May 2022 14:03:39 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id a17-20020a9d4711000000b006061cc32416sf1131395otf.18 for ; Thu, 19 May 2022 05:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=L6Ia8Oyts0DRQ65PWrmwdrHENpTv1c8F6sENrwWdf1o=; b=BFg+QFBzvv1Py/QE54sG6jk4FoIXsiqIMUKKgZJF+sbzKL4jrV+lNYtc7zOStm/jj4 BejTgFdFp2Qkb5lprAWr/GqKz8CL2OF0NGi3cFf+mIjux60L8SWslbogoTnssWE+U35s NQ1r815JiI5nSACB9+rHDAZW/YYQysQXr2ueQgPQobmitIOij4J/GQWvqorK5EQZ3IET YJPYAddGt3v/fLGqDPghkPdKlEsSIdzsB1JFRVU7dn1EfRO65mp7+pUO/APeRubfT1Ne ZTg+JJaO65XaNNXPhojEa3kxH3MoiJAY+svOOWt2reNszXsGXsmyHMQU4E8gSBO/WSHX bD6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=L6Ia8Oyts0DRQ65PWrmwdrHENpTv1c8F6sENrwWdf1o=; b=kxjudWNeJYRd3yq3fqRMnejfoMAQKd/CZrtqqzmuNAz00d3uMPkjGXEeeovhy/pusi 6nmsVjCP4bteipVL6TQ0ywwyFPnCysdHw+MjqE18A3Fuw2JTHcShweycRNRKARNxl3Bt /Q6FUp3zhetJSMNXT0yQr3mVrkI9rgp2EHM/I4qaF6K9Wvsmx53l3ylXkYMv5icklFk3 MheC236lfwQ9BBQ0vnKMJ5sCBDyh7N70QDRsdmNJChKGKVv9uL8p6Mk7Eo0ctcoXCeui ol62HzZr9RoJtbMo6mcN4IHVyNoP0C+iIF1wW9K28XK3dz90tFMkZVG9X6XkkeMDlgHR Ky0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=L6Ia8Oyts0DRQ65PWrmwdrHENpTv1c8F6sENrwWdf1o=; b=V+WN9SOoOnoeP4EyOU8vog0RddeISo6xL1JLO0eXGuAojp4Q9cQ33BPPVwE9q+Svef 8nfzpdp1zEDYtOvA8H+ZQxFiBwpy+Olyjd3jFJNcN/TfdxyVIkiQ/fvyUgm7xG5wbDLU XF07wxbmm2qhMNYJ1HWsMF5Be52kZw6JrxnUGn0yn69nOmENXTG8xSSCSBekYlVnf6Kn sMd0Gqr/6wN1qTTdajiemZllLalwAl6K/5SoTNpYRvzFGEr0FIeBC2VRzV7fK1lS7T50 tlBFzITnXsRy1UGdMujhnJc+N1jYhbdknpo76oh6XzagQsmCNUa9QQgQVJKskA1Fp1Jb 336Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531EhE5K4uFWBlh8DvOK1UwiTMdxsjHwkEDkDxsKMba95KjuSSDB KcFscTNLgyDj+XdZVPRcuOs= X-Google-Smtp-Source: ABdhPJxz+oBqRSL2F9KavEwl8Tk5yXOgtQTpTW4Mg/okGIDU0DQ9mhmD50FJW7/GYQGveZ4eKeweSA== X-Received: by 2002:a05:6870:a902:b0:f1:bb16:4e5a with SMTP id eq2-20020a056870a90200b000f1bb164e5amr2848454oab.143.1652961818652; Thu, 19 May 2022 05:03:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:9a03:b0:e2:adb7:ef12 with SMTP id fo3-20020a0568709a0300b000e2adb7ef12ls1079313oab.10.gmail; Thu, 19 May 2022 05:03:35 -0700 (PDT) X-Received: by 2002:a05:6870:709c:b0:f1:b173:2ca2 with SMTP id v28-20020a056870709c00b000f1b1732ca2mr2736513oae.70.1652961815286; Thu, 19 May 2022 05:03:35 -0700 (PDT) X-Original-Sender: k.yamamoto.08136891-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:30580 Archived-At: ------=_Part_6374_599801626.1652961814683 Content-Type: multipart/alternative; boundary="----=_Part_6375_978989401.1652961814683" ------=_Part_6375_978989401.1652961814683 Content-Type: text/plain; charset="UTF-8" Hello, This is a kind of bug report for pandoc==2.15 specific. I have faced strange behavior of lua filter, which processes Link, with pandoc==2.15. After some research, I found this is kinda related to issue #7639 (https://github.com/jgm/pandoc/issues/7639). So now I am trying to put a message that filter won't work with pandoc==2.15 when it is so, like following code snippet, but Lua filter (or Lua subsystem) doesn't detect pandoc's version either. ```lua if PANDOC_VERSION=={2,15} then print("this filter wont work with pandoc==2.15") end ``` The message won't appear with pandoc==2.15. On the other hand, `tostring(PANDOC_VERSION)` returns "2.15". So if anyone trying to handle Link with pandoc==2.15, use tostring(PANDOC_VERSION) to filter out pandoc version. For your information, Kazuki Yamamoto / _K4ZUKI_ (https://twitter.com/_K4ZUKI_) -- 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/99207986-698f-4f37-9827-e5ea5b6c40e6n%40googlegroups.com. ------=_Part_6375_978989401.1652961814683 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,

This is a kind of bug report for pandoc=3D=3D2.15= specific.

I have faced strange behavior of lua filt= er, which processes Link, with pandoc=3D=3D2.15. After some research, I fou= nd this is kinda related to issue #7639 (https://github.com/jgm/pandoc/issu= es/7639).

So now I am trying to put a message that= filter won't work with pandoc=3D=3D2.15 when it is so, like following code= snippet, but Lua filter (or Lua subsystem) doesn't detect pandoc's version= either.
```lua
if PANDOC_VERSION=3D=3D{2,15} then<= br>    print("this filter wont work with pandoc=3D=3D2.15")
en= d
```
The message won't appear with pandoc=3D=3D2.15. O= n the other hand, `tostring(PANDOC_VERSION)` returns "2.15". So if anyone t= rying to handle Link with pandoc=3D=3D2.15, use tostring(PANDOC_VERSION) to= filter out pandoc version.

For your informa= tion,
Kazuki Yamamoto / _K4ZUKI_ (https://twitter.com/_K4ZUKI_)

--
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/99207986-698f-4f37-9827-e5ea5b6c40e6n%40googlegroups.= com.
------=_Part_6375_978989401.1652961814683-- ------=_Part_6374_599801626.1652961814683--