From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28187 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nathan Newsgroups: gmane.text.pandoc Subject: prevent pandoc from inserting vertical bars in metadata block? Date: Sun, 18 Apr 2021 11:52:30 -0700 (PDT) Message-ID: <9728d1f4-040e-4392-aa04-148f648a8dfdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4374_704763222.1618771950925" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19218"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC6J737A2QARB3776GBQMGQE4OPGKQA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 18 20:52:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lYCX4-0004s1-4J for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 18 Apr 2021 20:52:34 +0200 Original-Received: by mail-ot1-f55.google.com with SMTP id b11-20020a056830310bb02901c911d48743sf8436534ots.14 for ; Sun, 18 Apr 2021 11:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=tecvqh9DYt5jHfMJxW56BNMef0WQ+prkzQM5/g/VyZE=; b=aSseP26SGzZ7u52kiKWggTZ4eABlodUfOXMMYxKb0wx/G033J4Yf00mSJSA2pbF1iz +EDkkQ6yGpfqSDhfAtz2q+vFlqDDw81e2y+Pyf9feAFaUIfUFOOC0i1T2c3Me+5oe68g b3urJH0TK+D6FcnQlF2PM6gS7c7zmHWnShZYMfjd+xWDXUmoVjK/lWj/1SMiOaMtqaaP 64j5bY2mGm6JVjqUSJHE/YhNLMzS1s3asGN8+FNDmsXBiQR3ZNe4jDgMW4dk7zwfIUAB nMLOSn0AQw8Q1BQvKam3m43x7D9jOgvJf6nY0oTk7z7Rd+CHW6N3kJshAdKiAWtdKsSq YWjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=tecvqh9DYt5jHfMJxW56BNMef0WQ+prkzQM5/g/VyZE=; b=eyClFFK2zyoNsx0RRPYiQwnl0Q3gzWhQRgM/hKpaMI2IKkNbPm36H3O/lfbg0iHVo5 SAKO5TjN1BEpUXQRfrb3pMMoeYc8mo0byRt3IJF67vsJvUW0oPOYDMgQhsKpJ/k4ntBI Kpr2QYiUwvKI8x6HYwa9RuFcxoPKIVVCjjnoaQvgwX42hLhelcMa/GA/KMfIxGm+9lPl tGaXmBDNN79eC31r1ql4ra7URtLFXEzEQOGXLQCSWMTuqVQRslO6QX1iaS9N7OM0Z/xs N8i11yVsCQJxnUVWwMvM0vDQAcZgh1S+cpe7hwStjjkY6aYBhtClnLcwH+tqlPmhHM6O FAHQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531MRHDWlF+iRTdDKU7Cw+y4DwZcbz1ibz11gttvIOK4DffFEht7 wf+AYqF9tl14khQ+0kazbPk= X-Google-Smtp-Source: ABdhPJzoW75DSYPltVGSwv+TnEDu9/4xY1Wr14Z+fPn6JqETENdVj53GRMxWg2WRstdlJ2qsFOTxIA== X-Received: by 2002:a9d:2030:: with SMTP id n45mr7616475ota.98.1618771953168; Sun, 18 Apr 2021 11:52:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:d54d:: with SMTP id m74ls3398108oig.8.gmail; Sun, 18 Apr 2021 11:52:31 -0700 (PDT) X-Received: by 2002:aca:39c1:: with SMTP id g184mr14027390oia.120.1618771951600; Sun, 18 Apr 2021 11:52:31 -0700 (PDT) X-Original-Sender: nathan.artist-s8PdfxpoPdHk1uMJSBkQmQ@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:28187 Archived-At: ------=_Part_4374_704763222.1618771950925 Content-Type: multipart/alternative; boundary="----=_Part_4375_2092627327.1618771950925" ------=_Part_4375_2092627327.1618771950925 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_4375_2092627327.1618771950925 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm using another application that outputs MultiMarkdown with a metadata bl= ock 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: |
&n= bsp; Doo de Doo
baseheaderlevel: |
  1
bibliography: |
&nb= sp; Pubs.bib
lang: |
  en-GB
title: |
  Blah blah bla= h
---

Is there any way within pandoc to get rid of the vertical b= ar and newline in the metadata fields so that each metadata field is on a s= ingle 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 wa= y 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 &= 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/9728d1f4-040e-4392-aa04-148f648a8dfdn%40googlegroups.= com.
------=_Part_4375_2092627327.1618771950925-- ------=_Part_4374_704763222.1618771950925--