From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28991 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Prevent backslash escaping and kept YAML header in Pandoc Markdown to PHP Extra Markdown conversion Date: Tue, 10 Aug 2021 12:47:26 -0700 Message-ID: References: <0c95effe-7e6e-4974-a7b7-5981b6b46ed4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sean McDaniel To: BPJ , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBZFPZOEAMGQELJMDULA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 10 21:47:51 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f56.google.com ([209.85.216.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mDXj5-0005Gg-2O for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 10 Aug 2021 21:47:51 +0200 Original-Received: by mail-pj1-f56.google.com with SMTP id v18-20020a17090abb92b0290178fa401bdcsf152435pjr.4 for ; Tue, 10 Aug 2021 12:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628624869; cv=pass; d=google.com; s=arc-20160816; b=DhW4gYOZBFr1e6wO7KzB71x2gVIQUKrYz9+AfMGziZB4vePKnm5pLHENfOS9YO43SU lnnG6UtjL95oDWJVnMfuitCVEVL1F8jMhqxHXy5iaS6qKPrCD0uOKN8taenh4+ICMj00 klQmzQTVdh7f6n/RNkNgvFnI8GZ33eVvYAGrQPQJG2At0Q91SCNs1StnAmuo7S3jUKYi JExBHQe4KoGHuP7Nu/kCYVl7y0AMRMhQFsTLT10gHk8AbDZn2sNs3mvsTm9/0z8w7fBf FpUrtF4aB/rGxk9cZa709TQoyqW5F84fRRKwG/dSzuEkAMo4XkBqNAOOoy2Hli/c3H5E I+Kg== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:sender:dkim-signature; bh=nDj3vwpKLwi93SU+5ncwZdEGed38DN52goTGod769xo=; b=KNv9AiJ+PVwEqBqr5x/RLYKu41F0mzRWs8GfzzuSF9k6iGkC1lO1E+/4tCMzI5gaZe 7Hc39dy74MypwqyxAs84isM5Jlh1pSRt3VL4+wkmdVo9qgjqk431xaUgVQ5i2zz1Uy0p 5GLLQvjYmFm7LX6fwy5yMDYGGr2ZE3nNHHjmFbXA6FWD1wfXawvGiVVvoXviKU+muHUQ QHp4BBNZJN2tcb+Xu7Ynt5RR8dhTuBEuKQvdbQn+YL055wwUaXlYbqEtbHePYi6I+c82 7dl14vFP4NqUdlbhQ8Kla2X9ERBuC0o+3M206Fv6ps5mK0GpkIgJ3m3q/4vsnaW3OC+s 37OA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aFZ/zkcE"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c 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:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=nDj3vwpKLwi93SU+5ncwZdEGed38DN52goTGod769xo=; b=LkP8XS8y6bEHAv++3O90LKg9nERMRBo/9xjf+5FX+sryeEyLln2ce+gT30crR1agBn UvSHbRERpTT5aiDntQLx9Ymetsc4/NXNkYlNSpO3qxGBefTUplwiWBLnCUYWksi18u8m Lucn+TqKokz9lgIQ6/3cPYea4B6nqQHZq9HCCRjVyvTmKrVNVwMoccYwEHwBJxHvSP03 ol8CIx9j8UDCC5aC2ixfhp1112R/4ThXmykfC8GVDBJMrrZvWT0WNTdidG9ndJisTk5O TcDBTSHniae8pNlCNYjiRz910lZe42QMX5ojEeTMI3IlhCqFYaYi2wv52b9TOtMw4hDN K8Jg== 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:cc:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=nDj3vwpKLwi93SU+5ncwZdEGed38DN52goTGod769xo=; b=pyNXwB/a0BTjopWYI7qvpLuVZcnR2gGBEIS6Wr/bVnP+pPg0Od2miAVOvLEONDC5uq +o3S8s77b+JFs1QFrnSjFlleVdoKdPGsSAbLBSbWk9SVOfta7j5XFEijqrOak6AS5MdQ NyBoviDkDfaGB2pFB5Cmlg732Br7YxH2FhVJLWmw0MN4dJ6sqhUzo5spI/aMJBPqaW89 ijg5e27/s6/UaSdQX07+T4B/rhPIng+VljTkrbuNpcTaWXI32x3Jr5iXgI/+4wnOOBJv dlnWjj7ap14JSCVJywk/vsEOZkiYO0FEo7R+zaSomLJfApA4Y3+z/VORKgZRNSwUI/MB Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532WwRg8gXA3UqeQBsBzAKkKadSyDtSOECFSg8CKjXzhj+UjivtO CdXMCkZpoojXsoS1dOLKWZs= X-Google-Smtp-Source: ABdhPJxAmi6UC1/oUx5ZnMJyT5JH1QxhaOcYbwxYw9pmsIeKnaCeTiN9cMvMp0csRUGU8Ml7+TqNAw== X-Received: by 2002:a63:5002:: with SMTP id e2mr554637pgb.256.1628624869848; Tue, 10 Aug 2021 12:47:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6a00:a1a:: with SMTP id p26ls5919pfh.9.gmail; Tue, 10 Aug 2021 12:47:47 -0700 (PDT) X-Received: by 2002:a05:6a00:2150:b029:399:711c:826f with SMTP id o16-20020a056a002150b0290399711c826fmr30210185pfk.14.1628624867519; Tue, 10 Aug 2021 12:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628624867; cv=none; d=google.com; s=arc-20160816; b=sxBc8YAIbtkPW1F/bhkREVciPo3oJs2IJ5MMre+sOB24lcyMLTsMDvqEr1/rq7lqCi 8kBoJ6wD4uwI0Y+JVqubNmdg2zTtYa39s/p0Y78i4zaxUoh4TUs8px20edMyzUM2JXhn W3cHP/LcVl60AIBw3f4ZQIzbxt7iV7FUNz5GKRQDjTX5EnUQJ+hmcRYIGDhyMOTbRYZt P+dwGWjR8FLH9BhE17FI49Kz3YQh+joIEHcGlvEbmhQHAtmEgPpCAkTMWqE0sO7Rvk2/ CrSLVuB5rDJPiaPma82q28vc/YxZ809AGnBND+ib6YTAvtaZ8/8b3kY1wBZoqnMa027W bCwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=vvqjRcdZvRDlxxc/uAu/7ZcJglCSKtARmb5jXp9n0Vw=; b=gTCT3AG7Wpp01iuddmAl4JiTPxWyHeCOqojJWhx2t7wa6PvIAaK8mZxWn0E+/D2cuN Dy5E1Nki3WDtlAYLQS/k0jSPNSElLD61jW4b2xAYnL32JHZI+TIqMrh1FX9L0wmACfXK /OvpgZDrEphEiLOCBKFtIRuTpAIPxM8SY2wG3XFNT/7qgMYri5QcvdDhu+rkYCZ8Hwpz 2NYAfopyOTHzGGIpPi5iQfWLBe0rChTnYjMpTZjiuOBEJy6IXibLl7Pfx/iuS2j2aXTs VBFGseYmqFer7bzhS7D1pgQ0WhBHqlLPzNRL+36y/QtsOAsXSdMb3jdOZ8GcU9NepIXT hkYw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aFZ/zkcE"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id 136si1181117pfz.2.2021.08.10.12.47.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 12:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id e15so118321plh.8 for ; Tue, 10 Aug 2021 12:47:47 -0700 (PDT) X-Received: by 2002:a17:90b:1806:: with SMTP id lw6mr5252157pjb.212.1628624866954; Tue, 10 Aug 2021 12:47:46 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id m6sm12406736pjv.40.2021.08.10.12.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 12:47:46 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 09978A2BC; Tue, 10 Aug 2021 15:47:35 -0400 (EDT) In-Reply-To: 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="aFZ/zkcE"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c 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:28991 Archived-At: I see. Well, messing with templates won't help. You could write a filter that is applied AFTER pandoc-crossref and removes these metadata fields. BPJ writes: > They are pandoc-crossref configuration options, passed through the metada= ta > since that is the most convenient way to let the user "communicate" with > filters. > > Den tis 10 aug. 2021 20:09John MacFarlane skrev: > >> Sean McDaniel writes: >> >> > Thank you John. Your suggestions got me most of the way there: the >> markdown >> > code blocks with the +raw_attribute processing are correctly passing >> > through the sections I want untouched and the +yaml_metadata_block is >> > keeping the header content I want. >> > >> > The remaining issue which is giving me trouble is that +yaml_header_bl= ock >> > is also including all other document metadata and not just the variabl= es >> > I've defined, i.e. stuff like >> > >> > autoEqnLabels: false >> > autoSectionLabels: false >> > ccsDelim: ", " >> > ccsLabelSep: =E2=80=94 >> > ccsTemplate: | >> > *i* >> > *c**c**s**L**a**b**e**l**S**e**p* >> > *t* >> > chapDelim: . >> > >> > and so forth. >> >> I'm not sure why these are going in the metadata -- what is >> setting these metadata elements, if you're not doing it? >> maybe I don't understand the issue. >> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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/m21r71895k.fsf%40MacBoo= k-Pro-2.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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CADAJKhBhk%3DM15HuN-4b%2BbG8NCGBeS6A7YYa3Y2n3Dax22m8MJA%40= mail.gmail.com. --=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/yh480ktujxw08h.fsf%40johnmacfarlane.net.