From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16021 Path: news.gmane.org!.POSTED!not-for-mail From: Kolen Cheung Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Mon, 14 Nov 2016 22:03:35 -0800 (PST) Message-ID: <38bfec67-90f0-4d71-b054-1eedfd853d96@googlegroups.com> References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> <14b8fa54-dc04-4874-bf47-fb268fc9f298@googlegroups.com> <12c01cfd-f9de-4dd9-bb80-fcac75c808be@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_3374_1400571150.1479189815763" X-Trace: blaine.gmane.org 1479189847 7433 195.159.176.226 (15 Nov 2016 06:04:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 Nov 2016 06:04:07 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS252WXTEIBBOGKVLAQKGQEDQEBBPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 15 07:04:02 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f183.google.com ([209.85.220.183]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6WqE-0006IN-2p for gtp-pandoc-discuss@m.gmane.org; Tue, 15 Nov 2016 07:03:34 +0100 Original-Received: by mail-qk0-f183.google.com with SMTP id 124sf22002050qkh.1 for ; Mon, 14 Nov 2016 22:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id:in-reply-to:references: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=iq9ukTmR8M8FPSDZhf0ZjAiUbtMq1Sd2TqbvEJxeVRY=; b=qliUOHNgjWmSemNYqwnrosUn8J4aLvHm4Zmd2fErnbxHWgj52qah1bO/LtIotJn65j EszW17yZnfDNPaYzJbxlP/m7+SJetQDQMuEQM98SzA9FybkOTZECF4ZT4GXO+PaVH5q3 AWvhkWmcYizdsdwIeTFRRkG4MEdbPUcF39dEyLktITo6mLo+uPzoGmrzaVJXioaPjyfo +w1pHCvRWPCfnW00KYth2c/WHKVQGFugIoZn+LPbUw/ZI7a18m21NvbY080Wy4OlvwxO b58+Ws5nlylKLUCh83gK4kj9cMelNSFKn5skqAG7kXJMQMfnv5uQPMPC5UyyZG7T+Whe VFSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references: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=iq9ukTmR8M8FPSDZhf0ZjAiUbtMq1Sd2TqbvEJxeVRY=; b=dsFstR0eH6dUrn7uR8LcVszbwnN4hbUgs7uxlKZJoplHwXByyxZ/gutYwNVRunmZwh vcUcbeUA5YYUFl84jXOK5zn8flF17HC+h1sEQ77XU89f3hb1nEadSj1aSEdZHZoWlEh0 +J6JbJsRggizdDduMx12VtcNg6nN0maHLaZbxbL9+lnlC0yOFOU49OKgXX2vrIHzkvud 6m0jxbLXrXE4swg4MEoDJLvT2RBv551nLwZJqvVonwR8xwzryI9eth0ZUEvIcEgYc6Ci 38AP6aLP/8D6TOfMZ/dH110FRnPvtm7FglXiJGj0aOT3zq/MC1LJnbh8dN68At6WnZoU ozwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references: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=iq9ukTmR8M8FPSDZhf0ZjAiUbtMq1Sd2TqbvEJxeVRY=; b=mW6iDM+0x4pyFGREbk5sNRE9mKWXbi1gDLlLJ5Nnkg6ly9kpPnckOuwinP/ncAS//K kCn58XuA+a7vMLNoUrOu1WQ+U2YSzBup+X0sxi/wmqB0QRrLMzWaOrHH1md8bici2tws J8JFrkpb1f5Xzq7KyQzgUwS98ZiWOXnseOf+5lFMQvFGGut9DStYYnG7WWMLl0uSJ4E0 7QYVWJcEPbBqVnpv+q/ob3XDDq1Cv2U7SHu+eu1cTZmM6YcSPlfwULHl9s2zxDSo7OXC fedEv9LnVLdiRCJxO8v+bK7AvA9iJrw9VF1PQlmOPzNUKsClYJWo9+aeljv2fEJ3OOGT jTFQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABUngvcEVJDsYa4fIhnZlnWZFYA0U4cFiNlGExkR9qabGqfK/uAqVyeXXjPxaLbLcMKJyg== X-Received: by 10.157.17.3 with SMTP id g3mr387711ote.8.1479189817179; Mon, 14 Nov 2016 22:03:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.23.193 with SMTP id j59ls8679545otj.24.gmail; Mon, 14 Nov 2016 22:03:36 -0800 (PST) X-Received: by 10.157.11.248 with SMTP id 111mr1308336oth.4.1479189816802; Mon, 14 Nov 2016 22:03:36 -0800 (PST) In-Reply-To: <12c01cfd-f9de-4dd9-bb80-fcac75c808be-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: christian.kolen-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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:16021 Archived-At: ------=_Part_3374_1400571150.1479189815763 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think he means the content of the codeblock should be CSV only and let th= e attributes to encode all the necessary metadata. I also agree that YAML metadata is more natural for data (so the value woul= dn't always be a string and requires additional parsing, and can have markd= own, which is important for caption). I don't entirely understand the workf= low he describe, probably he means another filter that process the attribut= e and inject a CSV there. (That's the primary reason on the feature request= in panflute that allow truly empty YAML. And thanks for considering that.) I'm thinking a more natural way to specify the code block is a CSV is not b= y class but by a special key-value pair, say, `filter=3Dcsv2table`. This wa= y seems to fit better in the picture that "panflute auto-install the filter= for the user". The "filter" YAML key in the main document specify which fi= lter pan flute will execute, and the attribute in any element `filter=3D...= ` determines where would the filter be acting upon. (at least for those ele= ments that support attributes). For my filter, I am thinking may be I should turn it into a cli that's like= pandoc but for tables. Unimaginatively, let's call that panxls for the mea= nwhile. Suppose it can do `panxls -f csv -t json`, and also HTML, LaTeX, xl= sx, etc. Then provide a thin wrapper that's a pandoc filter and define a ge= neral syntax to apply the cli in a pandoc markdown document. --=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 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/38bfec67-90f0-4d71-b054-1eedfd853d96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_3374_1400571150.1479189815763--