From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28188 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: prevent pandoc from inserting vertical bars in metadata block? Date: Sun, 18 Apr 2021 22:02:53 -0700 Message-ID: References: <9728d1f4-040e-4392-aa04-148f648a8dfdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33520"; mail-complaints-to="usenet@ciao.gmane.io" To: Nathan , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBC466SBQMGQEC2YLYXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 19 07:03:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vk1-f191.google.com ([209.85.221.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lYM3x-0008aB-I3 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 19 Apr 2021 07:03:09 +0200 Original-Received: by mail-vk1-f191.google.com with SMTP id y70-20020a1f32490000b02901df8c87c514sf4208868vky.4 for ; Sun, 18 Apr 2021 22:03:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618808588; cv=pass; d=google.com; s=arc-20160816; b=yB8DII/Ikv9u52c/DOpq5H7t9/B8mlLZPPA5u788Z09gyqtzpzLTeCq97dEBGnj6oc +SEBT/gc6HElfTPoAWvJA8N5d5GQi15IJPDv/vZ85esPCULT24FS6xseuW+nZaJzFVEY WH8VP3BxXcGgzCf5Rw45RF25q+ZlXcEGp9zvKvI1Ctxqs5BaSOQkvkE6SW5UStlAm0MI yqe0y2okTifN/RLFZMcv+v2nhfvwnkBXiq5zouJKnkqHUCVSRCoyHf1F4v4aRO9bkTPL 7fUIAcht/hXc1x/rQy2xq26sK4WfhvX7KwZ3hHK/ghGOwJrcae3t4ZxAM9j9J0SvXeH9 zeBw== 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:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=X9zdEnnE8O9iUDx6XoPrH84ucYLTkLqAQ27F96R4fEo=; b=hMK0zTq36MOi1pHRMtLaAI0+llkA1M/4CjEJKbj+r9WfXLFgvp8moT5UiHsHVbCoqV UcDhjN9Sgszm/r9GAVl48KmbNB4LXkCAWBfjp+bsd2P2AJscjG+DU3wcGaFRvU0fXHPw XNybs+pdTbqEw9jryvXimxhbOn8bkC41X8bFaEXaPyThphSjU6zQIVUqW10Ehw+kwzjs 5xzndkpoZdygCwOQBnreE6rFKcTZU/ZEqw56qMX3RzKek0oPdF03BQywlodsCF0p5wTk ARHE9KIGE0VLkgp70omhMdFSZMdGMLowJvrhoc0jvPcaxm8LQlA7h5oJRNldED6cb0jx hFjA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=GjlSo8IN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=X9zdEnnE8O9iUDx6XoPrH84ucYLTkLqAQ27F96R4fEo=; b=R26Iz/zVtMBpZLxRsGYTYSg1rPcouEWEa+SVnV1eY044/uCB0+x55MQ54hLGg4d0cg zoJAOwahXj7M0BfKV+NrdxRBvVapsksL8fYmYDscd+3adNLrJSLr8AvWVDz/bUbLyzCn 8ii29ROhxZKvlB6z3g5MgQwmFduqA6UMzAV/F0LHoKsp3X6+rlLmJfXp9U98hw3pxO2F Z1vKzQZVr0NWYIa8aoflE1g2WK6J+zNNawRzMaBD+Vcxt1wYjxfY8cHW75xEcynekANV jddr4igukuw8gyXR7wphd3103STh1Nez97RiZLNOIguvwLj1zgItnyWzcawl9cbEsTAQ cBPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=X9zdEnnE8O9iUDx6XoPrH84ucYLTkLqAQ27F96R4fEo=; b=NIxrVgPSlizWwWmtd4ky80kNGpxPpSkP8CRc8F1CpeY/lfJCnH5B5di9UxEntuFOBF tmqubfwrOUCAkORR67twGEaJ3wfgL+5b17KI++tOMNWFcLNSgbQ4Kh2dCTi4ju2RczN6 4RKkol2vNRcc1OW5JYUGSsS+GVhXlbceJuH09Axgt7fEFv5ZEkdyR6PKV9rMnC0V4OUe NzIyuNdp6JYxHuN10q3nkncbQ2wFENMJrmL5JWosy9WfEClr3W0yFtjwoVY6a9ImvXKk L29P2+EkfFIgzXl+MDs1TBVp2WS6sXKkrcJcK1ReWUX5oqlSpozHGCDBX+BvEI9CIzl0 Fn5A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5333SQpVU7ueKBH6r5IxkubpiVKnCi0dnuS4BWVcaMOG8D6tEChX Xk9qT7fhEv9EKjs+6Jt9QXI= X-Google-Smtp-Source: ABdhPJwhskxUQIlUGqcADixUMcUhsrKjrFqhlp+j+9YPOFRCxgQ+Bj/XfnRQraSIeA9b9/BBzVJSiA== X-Received: by 2002:a67:bd12:: with SMTP id y18mr13132662vsq.7.1618808588669; Sun, 18 Apr 2021 22:03:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1f:4183:: with SMTP id o125ls747113vka.10.gmail; Sun, 18 Apr 2021 22:03:06 -0700 (PDT) X-Received: by 2002:a1f:aa43:: with SMTP id t64mr14029416vke.22.1618808586797; Sun, 18 Apr 2021 22:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618808586; cv=none; d=google.com; s=arc-20160816; b=aFMeEhxlyoMazSJmOsX6uLj93O7tQPoBDp+tEH1o865N9mlFiRq88NjsC9MZKuhiHU iEsRNC0cIjoTuf2MGJ/2MUhH6ga6dXPjj0a2WafFLU7I2HmISuxpFwGmPEbWHvnBb1GP c1uxKyQGtMB8xvrqsFaDnl/LGMRNs2X0MguXvqeVUJyn7jAHDpUEsca7wVyH2E/BjvTl 2Y5hABsXSQUnWxpKXj/3Uy3iD1pFBVMBnNpfcBGUj1mUA/jQ/sm6Cy361+sL9eVPSC29 3xfVcvi3tvywf8ByW+uDtQq5A4Z2JmFlhLGJrxFdcu4X4xXTkNl37QJLCWBps+kSGdeV W1bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=ylfScJKxD3A8UJAuPVrnlyhjk9Xq3iZUW/bLNfaTiM4=; b=ALnqtj/JY2s0NgczRv7wSiBRhZhB2KcX1/Nog1rqEMgdoD8IJ/7hMwGCcNVI7VJxCt RvBd/NxnSheDD9WCX+IQ1FT16LfwmfO3aEU/DorfEhMh97p3E+gqpJShnfMgVKIOGhsV 3nH03KDawDjuQJrG37LWfRxU+qxw2BZ40KnUtZKr1bZvmIqqDUEoWxaerp9J6K7DMW1E T6K1Z3qQkMCI7Urb+1v6Zgg9DzYPIqTLs0gR05IKqC52ZMFZU33Vkf7gpVK72mt0IGcE sKeSrOyai8x3Pzw08dQx4QwjCDxKINdaINXIV/Gatxtll5iIVWyGKmQ+a35I5LJYZTiY iigg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=GjlSo8IN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id p12si166779vsm.0.2021.04.18.22.03.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Apr 2021 22:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id a12so22369933pfc.7 for ; Sun, 18 Apr 2021 22:03:06 -0700 (PDT) X-Received: by 2002:aa7:84c8:0:b029:261:d799:e7a with SMTP id x8-20020aa784c80000b0290261d7990e7amr424813pfn.68.1618808585705; Sun, 18 Apr 2021 22:03:05 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id j20sm12738907pjn.27.2021.04.18.22.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 22:03:05 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 46B27A231; Mon, 19 Apr 2021 01:02:54 -0400 (EDT) In-Reply-To: <9728d1f4-040e-4392-aa04-148f648a8dfdn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=GjlSo8IN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28188 Archived-At: 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. Nathan writes: > I'm using another application that outputs MultiMarkdown with a metadata > 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: | > 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.