From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28189 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: prevent pandoc from inserting vertical bars in metadata block? Date: Mon, 19 Apr 2021 07:46:39 +0200 Message-ID: References: <9728d1f4-040e-4392-aa04-148f648a8dfdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000006846505c04cdb72" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nathan To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBSNS6SBQMGQEBOWW6OY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 19 07:46:52 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f64.google.com ([209.85.221.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lYMkF-0004DQ-Ki for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 19 Apr 2021 07:46:51 +0200 Original-Received: by mail-wr1-f64.google.com with SMTP id 91-20020adf92640000b02901060747826esf6719785wrj.13 for ; Sun, 18 Apr 2021 22:46:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618811211; cv=pass; d=google.com; s=arc-20160816; b=Xo3iKBXXKjocnqTuAe/cisjWBqeCfI+1bnvivD9uj5ir3AEwleaBmEwWAFcTUv01BP Z0MoKXhyZJpQf4VJ3VqIhql9LehXxHUmvgsMzFrB1PoK4lNPUu6GZP4RApuX95gVbEbz voXkHozRGetmBsQwWjHyvnR1a39LAwdm4b8WfBT/MMvotwQSduBHFC9+dL4AMgQMIovs jgCNMtNTvHexnZTmgsOecrPINqmth1/sMxOFhnKpTvkq8qG/+WFFSNgXujpgdFm8EsRJ aq4oV8moI/BqpFnj1EpAIhyYhQ9RsBLRR31XdD0t2aXyV0F7A/T9ad6V4W0+/Yio16JS d+ow== 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:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=7dx4A4O5e2k/8n2Q+LZMWqBAHTNUBrjMeLFzP7mONFI=; b=VzxtjP2qP6nRwdl1QnsC074zVsoDOxdTUHRqHnhJdnQz/THLekJfkGUgur77adqYcd gl5V16khTwC9QTW3kvVEiGHFEIC9AOlwW8JX5lYDM5GMwQqU3kfDETVMN1nHwPyU3flg eI1I/4nzu4WOj4EFXehhSQVjvPxXS1KmSKlN3mi/3pgmmCuPvpi5917dRZ/MVEQzPP3L t52GOkytGvu9+/xjyz0hWGKqLzKwGZD/dtIuCPop1c9qq7J47ygHrRfKN6kpcyXo+lzh hsKBrwaFxdEJXbIGUz2WZ2Wc70kKUEPt90Q1xCb64Zpo8ubFAb/2C8570hSRj1N2H1Qp jlyQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.46 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=7dx4A4O5e2k/8n2Q+LZMWqBAHTNUBrjMeLFzP7mONFI=; b=lO3l/JbN3muD4VBaqVzfsgtgfQgmRO9QAaNgkEY0UBuUHcVMaK7tTJ8fHfSi95fn4c pzw94KCgYvn0p/OHNK0jvpBMAfS9T/4nGQ2K5aN4Q3zrbpe2ETtXWtSt5VCw4hqKI0ov a2090sX2QfUieiTiJOniD/FEt3z2aK82YZ3/wJCJSnjXVScMQ1yw3DWyLhjm6C3LNf52 /+jccOOSgOsZREFa6onbUuQ72mV21SiSFn0eR6lncxmkvf82kbUKFCYqQohy0swgVyEJ 4UEt3uIL9iVPXbmecvg3PbzRlCNQYBKR6P7QhmsQ3f/4QpHfb0zqPEV2/Tst1w364JyU 9Xjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=7dx4A4O5e2k/8n2Q+LZMWqBAHTNUBrjMeLFzP7mONFI=; b=DoHmgKimByHS+8XjXsCQ89OXmZ6S3IIZiXTHNFVgiFeUMJkYI3HkCBAvLXcL9+HxPg bwD6fW/0gLcByxwA9/TZCYNK2JMy1zhXKflOO4OyV5Dl4mlDb/kOEvAn4Oap6iqJot0M Gr014bzS2Pq5ZYT3WSLiYQRsO/fMVUffif9scAiLhBtFMelHNuy1Hmem2HEL8RukFFx+ PPOUFlc2yAWfWWSxEcTiHjdyvw1ri81v3BP/7FAUh8priux8OFEBUfjzWr1YbVLJWTVh HVOf0W01WT4kZzFeVwl0a+yjG9Kle7sh5sc8hYfjwXynTpOeSNoxd2Nf12cAo6GR8BWp yUxg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533cnBIhgEb3CiUX9Gz4HP0Mq3T4c/6I9rC0jKQr2XFuDQP46rOs sDJbdA7P5Ph3BoaGM1RI41c= X-Google-Smtp-Source: ABdhPJzksUYK0JUOmcgHBgwiDMv7ZfLcMYxhUg5Q17Kfgh7JmXvSfQDmcHRwYiwUEV4kQnIORYiMOg== X-Received: by 2002:a5d:568f:: with SMTP id f15mr12453171wrv.346.1618811211407; Sun, 18 Apr 2021 22:46:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:49d4:: with SMTP id w203ls3985704wma.2.gmail; Sun, 18 Apr 2021 22:46:49 -0700 (PDT) X-Received: by 2002:a1c:c910:: with SMTP id f16mr20201402wmb.136.1618811209032; Sun, 18 Apr 2021 22:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618811209; cv=none; d=google.com; s=arc-20160816; b=zz/cqvlatdjNpDkLR5KNF95shYOmJzpinT6k6879bVC6xT95WdzCSE8cuGcjxh1aST fPFteAg2IAG0MLSpTilrNTkVnRWTwE+Ov2maGXqffD/nbOaY/rXWx0UrovgscnAdjJO6 YgXUBdEv+19l7aGhSVk7c9gUXtxiqAcO6YwGnpGKF8g/7uFhwrUI5R62ZhlG0YlY5oy+ +rK9D6AKW5Uss7/rgnxgY7wieQFizyttbc2QJoVir8gQb0grMJ/l4Vu+iUXTHhFRliqI QslH6ZaSccmI49VEsNFA3iq3+mQ9Zmby4jgEDzeW9hBzSfb3AFq4UEHnHIsI9rwnEO6J ISqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=uu69dSdY5fXT4/hVlj24CNvwSazyH7rRDO5gBIk/l/k=; b=VeOzPCYQH0Jjk6Lxt42UOjqlioAc9R0O5IPn5MSgIWFrdDNSpvY053aQicI+9O4y4u JeNsmz+ndzcmIxUaqDF6hI5BW8aAy5XvieRUMANPzfEoU0Do0fQw6gC+ULOw+AqhVT05 dX84fhi/towJt5X6c1/XXl7ac1hclz4lPEeN8Q5l5MWAGGNyeWFLGhYw1Hs7mMTXzU4y CkUlZZRco9JcuOvSvp12lWviXGCOLH+v8WQpOzYbhc/zbzkqv0LExD6f4Yr1XC7CDUfM QSHkc8aZoDCPrrGneOCM0THIYEFhlRZ5vsd3Otx2V8+MDOPALObRafy3Oa1dwtiQCH7r 5Aog== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.46 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by gmr-mx.google.com with ESMTPS id c6si837090wmr.2.2021.04.18.22.46.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Apr 2021 22:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.46 as permitted sender) client-ip=209.85.167.46; Original-Received: by mail-lf1-f46.google.com with SMTP id g8so54068874lfv.12 for ; Sun, 18 Apr 2021 22:46:48 -0700 (PDT) X-Received: by 2002:a05:6512:2114:: with SMTP id q20mr10923560lfr.1.1618811208237; Sun, 18 Apr 2021 22:46:48 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.46 as permitted sender) smtp.mailfrom=melroch-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:28189 Archived-At: --00000000000006846505c04cdb72 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den m=C3=A5n 19 apr. 2021 07:03John MacFarlane skrev: > > I just pushed a fix for this. > > In the mean time you could work around this by using > a Lua filter that converts MetaBlocks elements to MetaInlines. > Wouldn't one then have to check that the MetaBlock element contains only a Para or Plain element and unpack that element into the MetaInlines element? > > Nathan writes: > > > I'm using another application that outputs MultiMarkdown with a metadat= a > > block in the following format: > > > > Title: Blah blah blah > > Author: Doo de Doo > > Base Header Level: 1 > > Bibliography: Pubs.bib > > Lang: en-GB > > > > Converting this using pandoc -f markdown_mmd -t markdown --standalone w= e > > get a metadata block in the following format: > > > > --- > > author: | > > Doo de Doo > > baseheaderlevel: | > > 1 > > bibliography: | > > Pubs.bib > > lang: | > > en-GB > > title: | > > Blah blah blah > > --- > > > > Is there any way within pandoc to get rid of the vertical bar and > newline > > in the metadata fields so that each metadata field is on a single line > like > > in the input file? I know I can pipe the file to something like perl > (which > > has been my workaround) but was wondering if there is a way to do it > only > > with pandoc? (The vertical bar, or whatever it corresponds to in > pandoc's > > AST, causes trouble in epub output by inserting an unwanted p element > > within title and author elements in the title page.) > > > > -- > > 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/9728d1f4-040e-4392-aa04-= 148f648a8dfdn%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 > 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/m25z0ieuiq.fsf%40MacBook= -Pro.hsd1.ca.comcast.net > . > --=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/CADAJKhB52GyVgab2CzJ_HYCvA%2B24pS5pvgf4DbvF2YKT-socew%40mail= .gmail.com. --00000000000006846505c04cdb72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Den m=C3=A5n 19 apr. 2021 07:03John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

I just pushed a fix for this.

In the mean time you could work around this by using
a Lua filter that converts MetaBlocks elements to MetaInlines.

Wouldn't = one then have to check that the MetaBlock element contains only a Para or P= lain element and unpack that element into the MetaInlines element?




Nathan <nathan.artist-s8PdfxpoPdHk1uMJSBkQmQ@public.gmane.org> writes:

> I'm using another application that outputs MultiMarkdown with a me= tadata
> block in the following format:
>
> Title: Blah blah blah
> Author: Doo de Doo
> Base Header Level: 1
> Bibliography: Pubs.bib
> Lang: en-GB
>
> Converting this using pandoc -f markdown_mmd -t markdown --standalone = we
> get a metadata block in the following format:
>
> ---
> author: |
>=C2=A0 =C2=A0Doo de Doo
> baseheaderlevel: |
>=C2=A0 =C2=A01
> bibliography: |
>=C2=A0 =C2=A0Pubs.bib
> lang: |
>=C2=A0 =C2=A0en-GB
> title: |
>=C2=A0 =C2=A0Blah blah blah
> ---
>
> Is there any way within pandoc to get rid of the vertical bar and newl= ine
> in the metadata fields so that each metadata field is on a single line= like
> in the input file? I know I can pipe the file to something like perl (= which
> has been my workaround) but was wondering if there is a way to do it o= nly
> with pandoc? (The vertical bar, or whatever it corresponds to in pando= c's
> AST, causes trouble in epub output by inserting an unwanted p element =
> within title and author elements in the title page.)
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
> To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/9728d1f4-040e-4392-aa04-148f648a8dfdn%4= 0googlegroups.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 pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/= d/msgid/pandoc-discuss/m25z0ieuiq.fsf%40MacBook-Pro.hsd1.ca.comcast.net= .

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhB52GyVgab2CzJ_HYCvA%2B24pS5pvgf4= DbvF2YKT-socew%40mail.gmail.com.
--00000000000006846505c04cdb72--