From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29403 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: spans in title / metadata blocks -> metadata read as table Date: Wed, 27 Oct 2021 09:43:25 -0700 Message-ID: References: <715b35799a5144bbbd9ecd730626baa8@unibe.ch> 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="11082"; mail-complaints-to="usenet@ciao.gmane.io" To: Bastien DUMONT , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBO4D42FQMGQEZEZUZ3A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 27 18:43:42 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f183.google.com ([209.85.210.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mfm1e-0002gc-1g for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 27 Oct 2021 18:43:42 +0200 Original-Received: by mail-pf1-f183.google.com with SMTP id d187-20020a6236c4000000b0044cf291bfebsf1884244pfa.10 for ; Wed, 27 Oct 2021 09:43:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635353020; cv=pass; d=google.com; s=arc-20160816; b=y6CtmhgxL9nmoQ7a86sisCyXL2nvctbUwvGlWjBpa0mLUx69xswsjjyWbXD7f+3Njy 6I1tj+JltbM7TyZ6S/k8W4enxyVf/+CI1gL6uJsnPXYqbmV7TtqYSmoXdWiSis6Iyfiw OGh0Xaq1+CYgF03AOR9Q264M++gmwlPf+5fkHn/VwoIKskuQQJInp823HEVqMqD6x9gt N5Dj72OKzR2B+5qOQR3nSS9Lmyjxy2hNZBpUq91/SrVulJAoHAfFlBe0/qVoJNiT3eLl CcIbyOT2BCaSuR/CEp0mCc1DEH2f59+bDFjcHqqN/GEfYrW3+m6hHdI5UChxme2QwWrL 1Lqw== 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:to:from :sender:dkim-signature; bh=3zPno35Dje76F2nxaWI0CidCkJCSWNtLXXY3Ch/0rzQ=; b=rFMywcj5jrxwneoZc5WAlsPNawE6UBIZDU9Am/ljGw8p5LYOby9P94awMNpvRPxoFg Hyfzn0oUFAwD/9x9UkaJnrPsnduKqmIgOyFL7y+ldHtznwuxeNauEkhkPP5YPjzQvBYl 1LZnK/BFu3ZjvEsccY/MXhuDSyj1dsNeqTjlLNiYt5/H8cHj5aG/0orRbq488wFEIego w77bsw/iFoST+8iPUKu+l1e9yYzW8fD1ixOqS9n0NgBrqtV3owdToySES7PP6MRErT0y A8/N6EVlFrgTFFTGScp0U8gXV/aoVlDuxmpAu6d9ctu9iQIMRLqWI4lA+4aiyu0GV+ry 7nNg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=KVbifAuN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 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=20210112; h=sender:from:to: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=3zPno35Dje76F2nxaWI0CidCkJCSWNtLXXY3Ch/0rzQ=; b=KUa4V4Tj90ixO4g0uosYlEE0Inat92qw94D9lgOlHwRgHD1RMo+AMByezsIYNMdHYk wGEZuomrmN8nFGpdxRAv785nvs86O3AK2qyWqyFt6lkmI22igE4AVL9gIakW9C9WvDMj NJPx+GcYA0EinfkaIjB6rzNecTF9wRcAu7UDfH5WXw4v4XBq3Aalrvk/E79rhp08y+sW HoV71pR7pdYdD87LP57l8IFU4z9Vk40U8GLlBtDDi0QKqY9U6Brswyn9vT4Bu/Gr5Mte yqwixTIcAetUTcASH/nUBmA2SkChLlWLJa3maLc8gEKdcYeLx5jCzd21NSEIzz4XGZGq Vxsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to: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=3zPno35Dje76F2nxaWI0CidCkJCSWNtLXXY3Ch/0rzQ=; b=STGWBQoMBqE1AfGjTwIU67h/Z1iSc4vR29ZEtKtV4OPSowIazsN8hxGo7KPThHPYUX r5OD3pn7m0go+CAqFcR9U5Iej8RLPWQyMg9r5S0GdVolZc+LwL12Vq1yWwFDgRua1Hdd 9jfRv6Xkcg9QtBQbEhNq5gcxGxDpFg/r4aYQuft+nel0XjezytjYJm29kqHdeAFzG79O iEd9ZJ6CeG4jCVOOkT+IeGxD40E/rzI72fZA3lUE7ZSbhUXsWwSXd4d7iKzidkyYohlc HoxNFlfk9L53CqAjiowlvPydxzF4/swuSCFe3gsK0rS8V5fJHOZayJN3xcErSnJuQ4QK Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533Wbqlb4RXt+neug+65B6wndkaPxIld3pgdm2Y7q/ca5BQOFNee ArXLTPBr93dUy4tmuY3U5nQ= X-Google-Smtp-Source: ABdhPJwI8SBrmNXe9f3NQJB3c9bGWN0BzGvHYiJ1B0ChtaW41AT7gUKfRGk5ITXgSkz4ENBvqIg7qg== X-Received: by 2002:a17:902:7c8d:b0:13a:768b:d6c0 with SMTP id y13-20020a1709027c8d00b0013a768bd6c0mr29691366pll.83.1635353020807; Wed, 27 Oct 2021 09:43:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:e5c1:: with SMTP id u1ls319291plf.0.gmail; Wed, 27 Oct 2021 09:43:38 -0700 (PDT) X-Received: by 2002:a17:90b:350c:: with SMTP id ls12mr7087721pjb.36.1635353018534; Wed, 27 Oct 2021 09:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635353018; cv=none; d=google.com; s=arc-20160816; b=KBOAVnFpiBnIceoZVqMaDVwI/wpWyUhpxF1AUv1rXWcsstR+cE5CBJCSwoRvXyuS2a 74z06WekF+GYgHqSQCv6ipvc0y2LbcQjSG7jzSChlwWDdDnx1Zuc31lxeYlRkhUjXsfC f7L0bEDhkXdgxKUaaknoDMgfLXkLLpn7yja76LVVOwk5mhhlflyblfUfFVi+S6Jbvmdq YSwMWFH0n3K/0zEXtfmS9riaYNTGBWmEWf53gN48xqhW29qxV/valDGuScG1v4BIYyPH qFkDEsLcEs8OMeL7q5X/QuepSg1mqxj6P/F+ELtVSswSTL2k5jnUvjwD0bMPuq4gSqvJ 3Zvw== 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:to:from:dkim-signature; bh=mZl67qdl5Vc/8lcpuQaGzEclJ3oe94N8c1uUJxsVIg8=; b=bdGyx9gvWQl0b748NjUJF7OLACqRLk04eBxsA65NUvaCXP+w67uLKa+R4ryXdn7pL+ dlREjP8SYO/9E9POlMEIU82+nX1/YA+NHj9xFw7uDKBamy9Bf5dA74tXjrywBpOasTua SJ3wKHwIi0yIv6axcDnLRjEoCm2diHgjM+aRAuh0n7Mb82XTwtDKne7a/dJItLDy/ysI 5dC6C6SDcjIOHM7utbrrHMEqRoUlgxnIQ1RyOksd+96GXAFGwA7QfQABl4YQcDB5bCNY XoE74YEH9wtJTwOzZm2kadeQsvQNKitt45Em7LwppHNZo6/ckgsKuW1kAjKitUZ4XQBb BzlA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=KVbifAuN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com. [2607:f8b0:4864:20::1034]) by gmr-mx.google.com with ESMTPS id ke3si526907pjb.2.2021.10.27.09.43.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 09:43:38 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) client-ip=2607:f8b0:4864:20::1034; Original-Received: by mail-pj1-x1034.google.com with SMTP id lx5-20020a17090b4b0500b001a262880e99so2503135pjb.5 for ; Wed, 27 Oct 2021 09:43:38 -0700 (PDT) X-Received: by 2002:a17:90a:f182:: with SMTP id bv2mr7115346pjb.16.1635353017516; Wed, 27 Oct 2021 09:43:37 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id d13sm514205pfl.0.2021.10.27.09.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 09:43:36 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 8806BA24D; Wed, 27 Oct 2021 12:43:25 -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.20210112.gappssmtp.com header.s=20210112 header.b=KVbifAuN; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 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:29403 Archived-At: Yes, yaml escaping rules are fun! By the way, I have a PR to switch from HsYAML to yaml for YAML parsing, and with the version of pandoc that uses the yaml library, this input actually raises an error instead of producing a table: YAML parse exception at line 1, column 13, while parsing a quoted scalar: found unknown escape character That's better, I think1 Bastien DUMONT writes: > Hi, > > I raised a similar issue here: https://github.com/jgm/pandoc/issues/7152 > > In short: simply replacing double quotes by single quotes should solve yo= ur problem. > > ``` > --- > title: 'asdf \[[=D7=90=D7=91=D7=92=D7=93]{dir=3D"rtl"}\]. asdf' > --- > > asdf > ``` > > gives: > > ``` > Pandoc (Meta {unMeta =3D fromList [("title",MetaInlines [Str "asdf",Space= ,Str "[",Span ("",[],[("dir","rtl")]) [Str "\1488\1489\1490\1491"],Str "]."= ,Space,Str "asdf"])]}) > [Para [Str "asdf"]] > ``` > > Le Wednesday 27 October 2021 =C3=A0 09:11:20AM, denis.maier-NSENcxR/0n0@public.gmane.org a = =C3=A9crit : >> Hi >>=20 >> I have these two MWE: >>=20 >> =20 >>=20 >> ``` >>=20 >> --- >>=20 >> title: "asdf \[[=D7=90=D7=91=D7=92=D7=93]{dir=3D"rtl"}\]. asdf" >>=20 >> --- >>=20 >> =20 >>=20 >> asdf >>=20 >> ``` >>=20 >> =20 >>=20 >> vs. >>=20 >> =20 >>=20 >> ``` >>=20 >> --- >>=20 >> title: "asdf. asdf" >>=20 >> --- >>=20 >> =20 >>=20 >> asdf >>=20 >> ``` >>=20 >> =20 >>=20 >> The second example works correctly, but pandoc won=E2=80=99t pick up the= metadata when >> there is the span in the title. (The metadata will then be read as a tab= le.) >>=20 >> =20 >>=20 >> I that a bug or intended behaviour? >>=20 >> =20 >>=20 >> Best >>=20 >> Denis >>=20 >> -- >> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit [2]https://groups.google.com/d/= msgid/ >> pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch. >>=20 >> References: >>=20 >> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> [2] https://groups.google.com/d/msgid/pandoc-discuss/715b35799a5144bbbd9= ecd730626baa8%40unibe.ch?utm_medium=3Demail&utm_source=3Dfooter > > --=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/YXkgv/JhzP8y4uee%40localhost. --=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/m2bl3a5sgi.fsf%40Johns-Air.hsd1.ca.comcast.net.