From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20091 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Markdown reader irregularity parsing tables in YAML metadata blocks Date: Thu, 26 Apr 2018 12:47:17 -0700 Message-ID: References: <5a5dc27e-6645-4efc-8dc7-8c11af64897d@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1524771925 6561 195.159.176.226 (26 Apr 2018 19:45:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2018 19:45:25 +0000 (UTC) To: Brad Dixon , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBU6ZRDLQKGQEFDOGB7Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 26 21:45:21 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f185.google.com ([209.85.217.185]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBmpV-0001bd-5G for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Apr 2018 21:45:21 +0200 Original-Received: by mail-ua0-f185.google.com with SMTP id y14sf21337663uai.8 for ; Thu, 26 Apr 2018 12:47:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1524772052; cv=pass; d=google.com; s=arc-20160816; b=P5XFkNXHJNjcjb2xo8TRNXkw/jpuHNMZ47jni55sghlkrVNLQfAp4oSKxD1Jt0jThT Ne48BKytupvmJXXtK3+VgaAjzWoPFnRn3OqNtTG/aMzQHck81iWmnvD2Z1HgDbJL6tJa XlVJJIYfAjU0iUoQFilHhNTxgGN28dOP88eQx48b0rFUg4EKAmziZdA/ua0cszOQg6lh dJt8IZQk1PSD9BFscsQY6eeZqpziao5rTgDk/KpW9J16+rjObcfkmDlIDUmdaUmGDfnt T9K8nLA1UAoNpqCp6PYE0pzLuT0y+BgjZM4bBOg7Bxhjqx0mFJsIIRAqjECYAsX/S64h pZfA== 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 :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=FzixBFzdhWSF3riHXfu8M4+eImtTK5r7YMpd+9PC3H8=; b=NGqi0pwcEjr0GyTvErP/poL+IARftFBomwKaNOC5gY/hfDKuXBRIkK+Fc3fkWYYEy6 X96R0sz6Pk7Up9g67gmt7f3+W1dgDTdxkp6uXR7WuwpzCiESFZUU7XDkoRmebJRUDvDM n2K6cNLaHOVZjn9dfFOl8AMk9x+dzcsljV+0GayMz5Ot9+10VPfWnDOcdmhuOmcvShRG +Fh4KBcswQwEWcSkuukEEbFbDPe7kXootU/mkkE1gfVMR8//SLcyC2rQvyaZvbbWleBP mxDrYy4UUrIEGXHrt2gnb6wQYMAV29TwG9GJjkwQaPCWi03IgdE6d7d9MQ5aXHqPtRP3 iB9Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=1imfyl4M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 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=FzixBFzdhWSF3riHXfu8M4+eImtTK5r7YMpd+9PC3H8=; b=hngZ0jBdJXxnCxOrjzG3O7IvMbVfQFFtvKhfhfo8/1rJRM+44x7E8Ynac3Lw6q1nZ9 t2CfyNemqMoBaTOY42sHUBn5lranHYyHHYswKw4vQn9dcVa6AdXUH26TQYoApRPAL+l2 G5W/kbntnOmc1ArFkKyQ0rcYD0UQtfxRoYN7KMDhKF2q4dLgobtM4zBKF1QvnJRrTmz+ yqSL0fo3VQy2bI2SA9N27uDDMaGA2c/24nX9a+zZ6G3UI5YFfaqA2fifCNTZnjV73HVs bBO3pLJPaZtajv3hp+N+KGj3MiDJ66llYeaa++726qNJZ+rGxXwijugDz3BirakMPl4C 1TQA== 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=FzixBFzdhWSF3riHXfu8M4+eImtTK5r7YMpd+9PC3H8=; b=P07bHeyske7Q93S411XNHUVz+CnVRkbCWi9cMmRmSM7uSRVznJIe0mVoWPEepwKYGO GhAHLHo33OFp37SuuKmDV7u1IL0yoHGoPWAeXTkDB9twTt3+IlLTC4of3k9c1I3ZBHIB JKk7RMfk8QStAHxSuOzVhWL9ROtEdaC5UjFeSgNohH1oXPIQkVBtIZu6iZAmRE9456F7 Uwo99coYtrShTsRyWhe9LxKLaeTr1ONN0GBD2ZaJWPHm8VeutSU+v1r8DReHWKSoIcrA bemElVatuh002rlCs0MxUI4VtAIKRCebkOY+glDjNxEP5xV3ALt1BE9uoxUvhNZWSleg yyPA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tB+u7rJJ8sw5a2G0aGRua2u69R0lmlWncxBpnn+0ceSyt6s6iLU ADOFcg1MWbtAGo0eNPEhuhE= X-Google-Smtp-Source: AIpwx4/e2jVCBwovxViAFLqcqfXUme9qKYMvGLNZc3rihR+jP1dlLehZnRgaH7MAyjf6O8k/I6R8+g== X-Received: by 10.31.180.11 with SMTP id d11mr4973869vkf.1.1524772052067; Thu, 26 Apr 2018 12:47:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0d:e6c6:: with SMTP id p189-v6ls234854ywe.25.gmail; Thu, 26 Apr 2018 12:47:31 -0700 (PDT) X-Received: by 2002:a0d:e1cc:: with SMTP id k195-v6mr10484390ywe.169.1524772051006; Thu, 26 Apr 2018 12:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524772050; cv=none; d=google.com; s=arc-20160816; b=L6rguL0UGJdX/lbAFEvKCkOBJLXN+oS2RLnILaPq+BYyrCwYeF2BJs6lWqVp3nXO3O ZF3H6590gqpS32DPJzJOR7CvrU7dJMNXez0GMHvLLqWtevc+Vk8vy3SrZW4O4tbThZtQ uU5/UZgFVfOy0p2uIF+0YBuKj8DDPl/0ld8QWMKAxiJp91GeG5v0DmQM3b0icq52taEf nILhgdxWrSfwD0MTiYROsXgWMgfSwJZ1DgvgXvETz3YOrk2aVoX32USXcekSW3pjL3aY C4XHJyNJjVmpqLX+6/rB8O0393Nna5DIJd9oG/+cIq1Lt3irUoVhtlt+d72umG+BTHRb e7Nw== 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:arc-authentication-results; bh=bJKN3RXDZ5ZpNLGeGIQtHkRhX9NLpr956Nnsnp3Jd4E=; b=UbtLz7qniNf8PhKgRYZomHPu8cmxKNfaKpqM7EVFtupMqra/pdVHETJ7VSrfBFaeEi 9Bj5bih/gAsaZfqnNo8oKDrKNoEl/r7r65yPs9MIAUh2agvJSX5tSglI69Tg445f/Uxt ruo+ptGtJPMkWK1Q1UEIeWeX+uuyTaCYIQYyzVFC0mRE07YtwLp2opvBDHwo2EGmr1jo DTGmjmiFUGtDyrfVj1LJLAg6Vcml+ZghtBBCR34i6LFZ9lq+4aVa6gYyBzoYAL/eIIdc A0YGDKCOIIJWBwdiy1rHr8TqZUo197Gr6IYzTyALxZb7WLL+vO/BK68K8whan7aXoZlm /cgw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=1imfyl4M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com. [2607:f8b0:400e:c05::236]) by gmr-mx.google.com with ESMTPS id t63-v6si1351954ywf.1.2018.04.26.12.47.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 12:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 as permitted sender) client-ip=2607:f8b0:400e:c05::236; Original-Received: by mail-pg0-x236.google.com with SMTP id p10so16704554pgn.1 for ; Thu, 26 Apr 2018 12:47:30 -0700 (PDT) X-Received: by 2002:a17:902:7c83:: with SMTP id y3-v6mr579675pll.241.1524772050261; Thu, 26 Apr 2018 12:47:30 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id m66sm44833644pfb.82.2018.04.26.12.47.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 12:47:29 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 23101A15F; Thu, 26 Apr 2018 15:47:18 -0400 (EDT) In-Reply-To: <5a5dc27e-6645-4efc-8dc7-8c11af64897d-/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=1imfyl4M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20091 Archived-At: I usually use `|` rather than `|-`. These are very similar in YAML, but `|-` will not include a final newline, and I think that explains what you're seeing. Brad Dixon writes: > Hi: > > * version: pandoc 2.1.3, duplicated on pandoc HEAD > * files: https://gist.github.com/rbdixon/490e2bc39be0b93efc2bc79ade5d497b > > I put tables in YAML metadata blocks as multiline strings to aid > integration of tools that generate Markdown that is then processed by > Pandoc. I've been chasing an odd behavior that I've narrowed down to > pandoc's paring of tables in YAML metadata blocks. > > This example (test_passes.md) works: > > --- > table: |- > Table: Title > > | A | B | > |:--|:--| > | A | B | > | A | B | > | A | B | > > x > ... > Text > > When I inspect the Pandoc JSON I see that it has parsed a table with a > header and three rows. This example (test_fails.md) does not work: > > --- > table: |- > Table: Title > > | A | B | > |:--|:--| > | A | B | > | A | B | > | A | B | > ... > Text > > The difference is the removal of "\nx\n" at the end of the multiline > string. When I inspect the Pandoc JSON the last row of the table is split > off into its own `Plain` stanza rather than being included, as expected, in > the `Table` stanza. > > Any advice on what I might be doing wrong here? Perhaps I'm abusing > multiline strings and their markdown interpretation a bit. > > Thanks, > > Brad > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5a5dc27e-6645-4efc-8dc7-8c11af64897d%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.