From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: lua access to metadata variables
Date: Fri, 02 Feb 2018 21:48:47 +0100 [thread overview]
Message-ID: <87fu6jkths.fsf@zeitkraut.de> (raw)
In-Reply-To: <30a56c18-cfed-46e3-9c62-5bbe38167f0a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> (tolot's message of "Fri, 2 Feb 2018 02:35:48 -0800 (PST)")
tolot27 <mathias-taBouHiV1h1goHlPtYpdqQ@public.gmane.org> writes:
> The only thing I want is just to get the value of the key, which should be a single value, always.
Your can use `pandoc.utils.stringify` on the meta value.
<https://pandoc.org/lua-filters.html#utils-stringify>
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
prev parent reply other threads:[~2018-02-02 20:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 10:32 tolot27
[not found] ` <ac250ed2-67fb-4fef-aed1-45681b15f48c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-02-02 10:35 ` tolot27
[not found] ` <30a56c18-cfed-46e3-9c62-5bbe38167f0a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-02-02 20:48 ` Albert Krewinkel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fu6jkths.fsf@zeitkraut.de \
--to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).