From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20090 Path: news.gmane.org!.POSTED!not-for-mail From: Brad Dixon Newsgroups: gmane.text.pandoc Subject: Markdown reader irregularity parsing tables in YAML metadata blocks Date: Thu, 26 Apr 2018 11:53:44 -0700 (PDT) Message-ID: <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: multipart/mixed; boundary="----=_Part_3111_1264651844.1524768824279" X-Trace: blaine.gmane.org 1524768702 11737 195.159.176.226 (26 Apr 2018 18:51:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2018 18:51:42 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCIDRV244JRBOOARDLQKGQEVMJS7YA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 26 20:51:37 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f183.google.com ([74.125.82.183]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBlzT-0002ub-8y for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Apr 2018 20:51:35 +0200 Original-Received: by mail-ot0-f183.google.com with SMTP id 36-v6sf5151505oth.17 for ; Thu, 26 Apr 2018 11:53:46 -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=7nY+3V2yNLdlWXFYwVgChJii9g+1OBRt13juvzcpRDA=; b=PymsZeshQ/A/sDtx2fVE3rzYYTlhy3GoVbL1Ykp0AHfEBW2J3s8Fcu81cwXmnaG0uR mjTXUK4UpLADwN4xMVOqpGStYd5ejCffVXS6DX6B+xu2bmNS+86tQn0i8ED9005hdtHH r9ysQ0YobGKygWfv7LY/wRAbEuoLxfFDdORNVsO+t3cvaUDZydLHuN8t00Qp/GZh6ggl g6agGPtOKtkTXXoBpUUMPaNMT99cNWmtfHbnn4QDVamT3VmNSeGKX/hXgeuf39O8RHTM V6LGwxoTr6FY6h+P91pY8xkw0mDwZOwstSRw96Be4/kSviFDV8TrQu2o46dDL+WadBsL YXnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=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=7nY+3V2yNLdlWXFYwVgChJii9g+1OBRt13juvzcpRDA=; b=Xj6EQSIJXQEPd8nq7Lvekdh3VX3TNRSfSRJb8ib2B67dsiPyeXGH7I4TsdDrZfSh7M dTnPo9Vx/PN6ZmCOBwnE9i/NqzuNjqxe7WQtEszqEH0VxHTSgYEqrKtZulCKIvm5RJSc HvcmBlu+AeYdl0MITg5LV0jEEcSgXfnmbpG33rCSPfFF/gVhgYvkugWO2sgxLs0S+eGR erRkW/QgXC1j8d4X5aIZSdBTjutoTTADfe83doNxNOMYc+hsbT/JpzWx8N+iOsKAHJGl 0B6AOnw4TVKj9wFlSwd4RuMNesQqv6J8KdZrORUnXi9zRRglSH6dD7C0JhiXMUEgZ78y jcOA== 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=7nY+3V2yNLdlWXFYwVgChJii9g+1OBRt13juvzcpRDA=; b=WbnJIKXLBeI7mKSGedkBlmA4B2Jil4qk5sefEkhx2eTrlddryHY+BpV+bfXVvzQH04 uEmeJ0StPIeoe7dvGSZHHJPJzn/iOPjLNDbhlF8RZ1Hgh0RlYhwqa3m6PZGB8//kmgZ0 f4w6YR89cIn+ZR9oD6eUM5n/LUH8CWYr549sAzOPJgH6WbfLzw6ViiQMws8nzHWLj5BQ ZX5CUXCgRuMrAELi9J0SQZCl3XbcPb3joWGef4P/fOd+/dMPXXq4LfEUtsmX2g6Qyvdx RgJUnj3OBKT8LMZxMAq63mvSPbPFAA3EaVZ3v174OUjAa8En2PK/s2h2vX0V9gnWP5nK qNog== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tCNfzAjAHYumRgG62pvo/SwpQ17rxoUf64Qzuo3d0DDhbhwy1nU Z2ubplkxDy57P1QYk4i7zIM= X-Google-Smtp-Source: AB8JxZoz070/dLcjoAm8932+t0A4i/IREaDCnKCLu4WhlAHxnHrq6lJjQ9tIhwkryqnyHDfBdW3+bQ== X-Received: by 2002:a9d:5511:: with SMTP id l17-v6mr478653oth.14.1524768825960; Thu, 26 Apr 2018 11:53:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:14ad:: with SMTP id d42-v6ls10266596ote.1.gmail; Thu, 26 Apr 2018 11:53:45 -0700 (PDT) X-Received: by 2002:a9d:5191:: with SMTP id y17-v6mr1377599otg.12.1524768824745; Thu, 26 Apr 2018 11:53:44 -0700 (PDT) X-Original-Sender: rbdixon-Re5JQEeQqe8AvxtiuMwx3w@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:20090 Archived-At: ------=_Part_3111_1264651844.1524768824279 Content-Type: multipart/alternative; boundary="----=_Part_3112_1426765714.1524768824279" ------=_Part_3112_1426765714.1524768824279 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_3112_1426765714.1524768824279 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi:

* version: pandoc 2.1.3, duplicated= on pandoc HEAD
* files:=C2=A0https://gist.github.com/rbdixon/490= e2bc39be0b93efc2bc79ade5d497b

I put tables in YAML= metadata blocks as multiline strings to aid integration of tools that gene= rate Markdown that is then processed by Pandoc. I've been chasing an od= d behavior that I've narrowed down to pandoc's paring of tables in = YAML metadata blocks.

This example (test_passes.md= ) works:

---
table: |-
= =C2=A0 Table: Title

=C2=A0 | A | B |
=C2= =A0 |:--|:--|
=C2=A0 | A | B |
=C2=A0 | A | B |
=C2=A0 | A | B |

=C2=A0 x
...
Text

When I inspect the Pandoc JSON I see= that it has parsed a table with a header and three rows. This example (tes= t_fails.md) does not work:

---
tabl= e: |-
=C2=A0 Table: Title

=C2=A0 | A | B= |
=C2=A0 |:--|:--|
=C2=A0 | A | B |
=C2=A0 |= A | B |
=C2=A0 | 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 ro= w of the table is split off into its own `Plain` stanza rather than being i= ncluded, as expected, in the `Table` stanza.

Any a= dvice on what I might be doing wrong here? Perhaps I'm abusing multilin= e strings and their markdown interpretation a bit.

Thanks,

Brad

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_3112_1426765714.1524768824279-- ------=_Part_3111_1264651844.1524768824279--