From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30024 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Reading a multi line yaml key - results in text surrounded in html

tags? Date: Fri, 21 Jan 2022 09:24:20 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000022ced905d613590d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Russ To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBQO3VGHQMGQEGKCBZ4Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 21 09:24:37 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f58.google.com ([209.85.167.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nApDo-00084d-VY for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Jan 2022 09:24:37 +0100 Original-Received: by mail-lf1-f58.google.com with SMTP id w42-20020a0565120b2a00b00432f6a227e0sf5567647lfu.3 for ; Fri, 21 Jan 2022 00:24:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642753476; cv=pass; d=google.com; s=arc-20160816; b=QhDzcdlfmaCtMj+tex8OD5o4r3VxfImLK1FhfkK98biP9fyP+Qi4aLafy7CL4kxi8H o/6Oq8wF2JiS/SZ/I1g/i0ei3+YuEqO/cgfjcVIrQjdwmHCLvAeUcl+g4zsouwhnFgvV cIilWfgkGhwEYokvzIh7V+lACsii7LI9ExBcJzaTl3kNqCw+petr0sZMln22lAad51Fe zwevlKq7MoDeIuU5wRKjhBVYaPANgyAGrMHlrR8UecJjK/XeTD8ZMLUgqaPZXIobuoT0 SdpzhzOOmcnZULKZxfutpp8bESKHZbfbpbv4kNa5yIF62dTnIwEp5pZeCvGnSOKrGeUA n0ag== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=PNVMOaeCxfbQk5SVefzLE6uNivx+QXSpBGos3wOjdv8=; b=JpDGjlLykZik6QM8AYABVySDNXMH8gWmmjGpIKGe/cuU0yiQUVqh1z6qMGEgFt/oiM rN7n45GvzP1y1a6wI3xBMPu68PFJlLp6l4noDYX+qcmuKoV6//4pqjaDpErDffrWlN4k L7uDOJuN0wZWvMIkow1EQqciELLD8tY763RkyryQBz37r6KO5k1ZNp80SWfiYc1UXzUJ HdxeMDHyRBPaeCbVzW7Nfa3K0t9WL3L7kipYcdXKMcgMwQwqT/NstbO4mvPr8uQwCed9 Nf2kpU1nWRYvBGWxfK8Xv/Mx02QmreSlpZdrisTdQIoMu6ELdGruky2W1Kq1buQ3TZHE EPxw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DxP5hi6t; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc: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=PNVMOaeCxfbQk5SVefzLE6uNivx+QXSpBGos3wOjdv8=; b=hejC017T0zneQ3Rp/24C20/Cp6/uL9jwvrluMS1+h3ao9zAGGVXBMZL82UnoJvMH2x 3jCs9srHI2mIb1CUMnuQWA6ksq3VdW1roT1YDQJ+4dHd6DMpjaHKbPXnwBvA6z03ahLl Ayr4ePmDit4MrnPOnE6Du6K6DGbntHhfglCsDBXg0EDfAIHT8rxmsH2/mVBQy2z45PLY z4z+kTs3QYOPp87UdO/rwyzkxVoMAxctGXyLsM0Hqe0WHf3024RNvs1lln04qKatENvy q74VfZJBfiZoyKqejtRCGmMZ0rvcX6i6yBiJTu60rASK9I9HnB0hjDDmF+Aqe+fmGnjf jhLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc: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=PNVMOaeCxfbQk5SVefzLE6uNivx+QXSpBGos3wOjdv8=; b=RoRC2ZXJKZHVhEbuKfUO3ymNGFcRlMdefKrMswkQR8mDGYk5UFd5NyprssNQBQeBXf HX+ZuWl7V1nkX/m3sITeuzZY47Z4BCfiDXxLq1wlYlbctKNfhOZ3yrFprbgdsbzWIgrB vyU1yKGYJNnuwLmNiDHJJJlh8anP9Q8s0JwtEz4Cnj5kZcylj2hbLgkpTZKvRmva0QTn IJJ2l59g9MF7JL/Xs5EXUjmsRH/16FAVMPk2dfJMXqERJPCMeFgoDVVSy14+r+UlLA5p +9VRNC2EOw5HxGATyQ2flx7TyioaZFuEm+v/nQivL41BErqYRY8TURy7rigH/iCm6qlb Kv/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc: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=PNVMOaeCxfbQk5SVefzLE6uNivx+QXSpBGos3wOjdv8=; b=onhugaR+sXhpPJ1cUqlEtwMTAeVqbcK0Dw15d8mau5e7niLAylW/ivWZHfrd4ozLhP DSmeaGWRVAkYxg6AzqjVKeXtwMg/OTb5ISJBVnebYr9wtlbCbTIZM00ttL8tAH+lOEdU Bkv3hiBFKAupdvcNEahRNAJL4e0BVo2YRVdEYlSiwOjJ+hi0kuhXmiK8hEO8eC5xOOhV JxQaQUazoIlx585d1WUV6ob1L7OzJObMe4plCeugUe5qdtGWUAhRA8HJouaR8/I4xCzT eGIb28XwvC0xNEGK5Tw+Q5VNmguvEdrnT7v5+FE5QL6mp6kSmrxqxeDYt7IQ1Ze8AW4S YJRQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530RQUQMJJ2xWMQhRQxxp6Y6LnM6EihUvsLSArENdTSumdn/rleX 8OXG7JyrvTO3oCAu3+P3caw= X-Google-Smtp-Source: ABdhPJxZNqFpGjy64yrTE9FGaRKlOvdCx60e9no/67o6PgblAIiU2jvj2XQGZXiy95fTmlfCFWiYIA== X-Received: by 2002:a05:6512:3e8:: with SMTP id n8mr3011760lfq.458.1642753476389; Fri, 21 Jan 2022 00:24:36 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:550:: with SMTP id q16ls1281398ljp.1.gmail; Fri, 21 Jan 2022 00:24:32 -0800 (PST) X-Received: by 2002:a2e:7c01:: with SMTP id x1mr2434954ljc.142.1642753472175; Fri, 21 Jan 2022 00:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642753472; cv=none; d=google.com; s=arc-20160816; b=g2lnZtBbHyeSssXC55NV5/Ftlk4jQ7rdtv7YEA5X2idx5j1N7kIHetmZwNYSNWIl/y 9TegAU06rpvx87NARdKbMQ1Fm12UXyTe8isFvjx1MsXuYj3PpZJP57VkAuZWEmBpzltz kaxwtFe/mkzXJ68sHWYnOmrnWSdw9hca8iIn+/0Xb7rVMEsp1c82EnALfXzlEQ3prAdQ U51eXV95eo/GqYdJK6XaFx+vAi5coOLu05qR5TN+EH3sEGGno7DtesDF1N9YdfKJFhMJ cbRsdUAjmtL2PdGzNSPdfmm9TW/zEO5R08sjEyfw+5UO3lUQmR76Zem+ftOzQ5Ak8xs0 1kag== 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:in-reply-to:references :mime-version:dkim-signature; bh=UbYehlOqyDIFvYRRUujjAelvM7RLDmtSPOkTyHFPpHc=; b=lT30OyuWx4WeU5S8SzifDMULmAqadQIcLCVgpL5TA5EyR8cfbfhP3v64KOXEoVeSuQ wbaozApRSlZ9LYbG1I7FmdaFUPkpUsEvCukywtmoQBiq1Vdy8BSj1JxSwnobGO0w7oAX gUKwPauNwhdNqJcbfeU5guHstHEUFzxBv6NNN7yMq240e/j7FiSpQ7n4/HNx44hCVFSo 8XBWlll/Vskr9QValry7iznIRKSuDZ2afMQ/Ghd4rPzAS0ufaadn8EqkDfx9wKgvzD77 W4w2nPn+mRiU6if555GkPgsq5awHKmXRPcWGuZqev8w6FkD8sn3QpSXFgN9KcpRvOZwu YGQA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DxP5hi6t; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com. [2a00:1450:4864:20::131]) by gmr-mx.google.com with ESMTPS id q5si52587lfg.3.2022.01.21.00.24.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Jan 2022 00:24:32 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) client-ip=2a00:1450:4864:20::131; Original-Received: by mail-lf1-x131.google.com with SMTP id br17so31296027lfb.6 for ; Fri, 21 Jan 2022 00:24:32 -0800 (PST) X-Received: by 2002:a19:4f47:: with SMTP id a7mr2992947lfk.259.1642753471727; Fri, 21 Jan 2022 00:24:31 -0800 (PST) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DxP5hi6t; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:30024 Archived-At: --00000000000022ced905d613590d Content-Type: text/plain; charset="UTF-8" Or if needed use single quotes around the value to protect punctuation marks, noting that to include a single quote in a YAML single-quoted string you use two single quotes, as in `'don''t'`. Den tors 20 jan. 2022 22:42John MacFarlane skrev: > > One workaround is to use a Lua filter that > applies pandoc.utils.stringify to the contents of the > 'volume' field in metadata. > > Russ writes: > > > pandoc 2.17.0.1 > > Reading a multi line YAML front matter and outputing the text now gets a > > text string with html

tags. > > > > For example > > ```yaml > > volume: | Volume 16: A Subtitle ``` > > Should produce: > > "Volume 16: A Subtitle" > > > > But now produces: > > "

Volume 16: A Subtitle

" > > > > Is there a way to avoid these html tags or is it a bug? I cannot say for > > sure that this has changed in this specific version, but it is certainly > > quite a recent change. > > > > -- > > 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/e17cd72d-2900-476c-a945-77d9e2e722bcn%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/yh480ksfti2igy.fsf%40johnmacfarlane.net > . > -- 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/CADAJKhBEViWZsLRRtAr78yn3Q3fSZswg85vut21vkrpfsvszXQ%40mail.gmail.com. --00000000000022ced905d613590d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Or if needed use single quotes around the value to protec= t punctuation marks, noting that to include a single quote in a YAML single= -quoted string you use two single quotes, as in `'don''t'`.=

= Den tors 20 jan. 2022 22:42John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

One workaround is to use a Lua filter that
applies pandoc.utils.stringify to the contents of the
'volume' field in metadata.

Russ <info-ckBjHRpK5r9MPTj2movljOTW4wlIGRCZ@public.gmane.org> writes:

> pandoc 2.17.0.1
> Reading a multi line YAML front matter and outputing the text now gets= a
> text string with html <p> tags.
>
> For example
> ```yaml
> volume: | Volume 16: A Subtitle ```
> Should produce:
> "Volume 16: A Subtitle"
>
> But now produces:
> "<p>Volume 16: A Subtitle</p>"
>
> Is there a way to avoid these html tags or is it a bug? I cannot say f= or
> sure that this has changed in this specific version, but it is certain= ly
> quite a recent change.
>
> --
> 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/e17cd72d-2900-476c-a945-77d9e2e722bcn%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/p= andoc-discuss/yh480ksfti2igy.fsf%40johnmacfarlane.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://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhBEViWZsLRRtAr78yn3Q3fSZswg85vut21v= krpfsvszXQ%40mail.gmail.com.
--00000000000022ced905d613590d--