From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32819 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephan Boltzmann Newsgroups: gmane.text.pandoc Subject: Modifying metadata elements with Lua filter Date: Wed, 14 Jun 2023 09:47:56 -0700 (PDT) Message-ID: <19962c60-238b-4ef4-bad6-a8200ca9a3cen@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_886_442978728.1686761276799" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35049"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ25UWY24ERBPO6U6SAMGQESJHVMXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 14 18:48:03 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f55.google.com ([209.85.160.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9Tf6-0008sT-LO for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Jun 2023 18:48:00 +0200 Original-Received: by mail-oa1-f55.google.com with SMTP id 586e51a60fabf-1a7574d545asf630595fac.1 for ; Wed, 14 Jun 2023 09:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686761279; x=1689353279; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=HDEm9hdHSI9EZUENF3CzoXg648O1gwvWa1X1uBmVO1w=; b=hwMbPzbyjgyV7iYyZ8wbRPpVI7iIh9IchhYmxzwp0IJaFRN/4a6JwUQQPtUWNUJ019 +BUg7cGu19Xbx0Uy2cRZuHSmWS5eZpNrv3wUdGvKJAUKlef/X3bxdYUedmSheaiTiHWu NGgHKTGueJI0A4zRPdyld8BWmrfStBKXi/Gp9UoIFkaU4b6QpPqsN89dhrYgIdqHnvsR ZqECzaEAzDXcjLqoBSGfCxUhXCZ/Pn/mxAu9Eh6rMyL8z1TMBRXDsMmHiAd436qtX8cV JYuAwPMVcIUgyIMr69LChYh07WqBG0BUaW7mXdCXGujylGbudNA0mvItAlYbs3/VaPZ8 2vmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686761279; x=1689353279; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=HDEm9hdHSI9EZUENF3CzoXg648O1gwvWa1X1uBmVO1w=; b=fEGhCmh92pRoxjlFKa1/Q/6Y/NTlmaBZFK2oiTqgWBXyZhTqWesGqTX4P8Q4OqMhQ8 6foLYogDVSGavHORk/9Jtcjecp7PczmbSw8yOVaTdDd9umN3eP9Erj4rwKcnIU3OCX2b 3yd9BfZjegiQaP/sQj6DDO4o+pQfshY0qVwrdn6IxCdCKfRX2bY4n3Y0HIdU3rzF3J1a xWFiKP3hHZ60WoqO6Ezl+8H7wWd3OJFa8FKV/zR/Wvp2UEy/l3hlgJDny1YuJnoLDhhO /snEH6lpNa/6R0bOLNTUia12iMns2AGtBRo21DcDupkeuN3cOtEunvt30wiEZGVQNFQ9 4t1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686761279; x=1689353279; 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:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=HDEm9hdHSI9EZUENF3CzoXg648O1gwvWa1X1uBmVO1w=; b=BHd4VPGO/tWpU8Px4jsxn3iu5yYx/xm/fwulTb+dpIDkJ3ei5Y2onYN0+eo4O+G9BF WLO0x4gL5AAG5BmzqhvKFxecMpQj/2sOL/Dwr8rYAlmpaxGVB3YUZmhBIuYwqKzRjtMz Z11ln0G9pUPlQMtxmXpBRUl0dZJM4aNwqFKEhSf0KoOwbQpo+Jt+ISQ9a9OzE2IL4YGB ePCkiw0aLrWwSxWpUvdrC224yaV6IJwD87neP1LktkPBGChqtr2VMEwBtJcD8t3EZ91s ODG0iyGcRgIMmNL2gq0qsrSkeau6CQxE/VVda8JjyQRZraD+UReQZPz3Bayw/uiE9LQ6 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxS4I/p3Q6APOxA4bDGlwFXVHi8wngesKv/n4GbfR/j7l8eOsDG 7zP+QgBWZsRuNsrpyzdNnss= X-Google-Smtp-Source: ACHHUZ73MhV/CcQOgAqXLx3ObSx2u+Y35dGO/fCGs15mvhjTgiE3Rdb2ntYN9mRF5a8pyPp5+Mzigw== X-Received: by 2002:a05:6870:3e4:b0:19f:45a1:b59d with SMTP id h36-20020a05687003e400b0019f45a1b59dmr12272942oaf.12.1686761279438; Wed, 14 Jun 2023 09:47:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:cb91:b0:19a:355a:bf90 with SMTP id ov17-20020a056870cb9100b0019a355abf90ls183309oab.1.-pod-prod-03-us; Wed, 14 Jun 2023 09:47:57 -0700 (PDT) X-Received: by 2002:a05:6830:16c2:b0:6b0:ad8d:4d7 with SMTP id l2-20020a05683016c200b006b0ad8d04d7mr4117255otr.4.1686761277332; Wed, 14 Jun 2023 09:47:57 -0700 (PDT) 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:32819 Archived-At: ------=_Part_886_442978728.1686761276799 Content-Type: multipart/alternative; boundary="----=_Part_887_26299769.1686761276799" ------=_Part_887_26299769.1686761276799 Content-Type: text/plain; charset="UTF-8" Hello everybody out there using Pandoc, For the following short document, --- title: Test author: - Author A - Author B --- # Introduction I would expect the Lua filter function Meta (m) print(pandoc.utils.stringify(m.author[1].MetaInlines[2])) end to print out "A", but it prints nothing at all. What is the conceptual misunderstanding I have here? -- 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/19962c60-238b-4ef4-bad6-a8200ca9a3cen%40googlegroups.com. ------=_Part_887_26299769.1686761276799 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everybody out there using Pandoc,

For= the following short document,
---
titl= e: Test
author:<= /span>
=C2=A0 - Author = A
=C2=A0 - Autho= r B
---
# Introduction

I would expect the Lua filter

function Meta (m)
=C2=A0=C2=A0=C2= =A0 print(pandoc.utils.stringify(m.author[1].MetaInlines[2]))
end

to print out "A", but it prints nothing at al= l.

What is the conceptual misunderstanding I hav= e here?

--
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/19962c60-238b-4ef4-bad6-a8200ca9a3cen%40googlegroups.= com.
------=_Part_887_26299769.1686761276799-- ------=_Part_886_442978728.1686761276799--