From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6100 Path: news.gmane.org!not-for-mail From: Dirk Laurie Newsgroups: gmane.text.pandoc Subject: Re: Pandoc and OPML Date: Tue, 26 Mar 2013 07:22:58 +0200 Message-ID: References: <20130315222848.GA8282@protagoras.phil.berkeley.edu> <20130317224720.GB48086@Johns-MacBook-Pro.local> <20130318001423.GA8496@protagoras.phil.berkeley.edu> <20130318040154.GA54653@Johns-MacBook-Pro.local> <20130318053341.GA14308@protagoras.phil.berkeley.edu> <20130326022137.GC9254@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1364275385 30095 80.91.229.3 (26 Mar 2013 05:23:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 05:23:05 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCW2LKP7WUBBBMXBYSFAKGQEMDRQW7Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 26 06:23:29 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vc0-f189.google.com ([209.85.220.189]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UKMLz-0004pb-Iv for gtp-pandoc-discuss@m.gmane.org; Tue, 26 Mar 2013 06:23:23 +0100 Original-Received: by mail-vc0-f189.google.com with SMTP id hf12sf2423003vcb.16 for ; Mon, 25 Mar 2013 22:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:received-spf:mime-version :x-received:in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=sOUcaRzTfIHZkYh6EmSsiSWGVPf16LDxFS+DoF2FG88=; b=yqjztLja97VuBcGIlNdmcj2IDpxZOr3s/I7vUSCwM6bQJn/tfkLAj4S8Ki7PkSp0Qg aUlDkEyuKaptZgKWR4FNBWE/Sbz8csaw2fDpVVa8gZOYiVlJF2vcMCI1hHngTJwUyDEk OlSOi2iS0Scd09pmwI/jXDL5UzID7b8Wdxb+j742YNzuz9oPBIJIvkBiQy0qI6oORjjq JeZy9oVESMvaGvnpCj9dxLPItv8X4r0nNBfGwCbO+0OHTwpyTAb5fTmyKdyOo4OuXL25 fJO5szXKjvgqixLPQYmmxfx0DiH13+YzZE7sFO7Ir8PRZB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:mime-version :x-received:in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=sOUcaRzTfIHZkYh6EmSsiSWGVPf16LDxFS+DoF2FG88=; b=iZedRk/eVUGihjKL4CfbTN4SOi+Y2zG0SGC0lyNUH8bqMibkLfeF4eHtugNgqW73tB YeUks4/wEiEkaaYsUXDrydOh6+F7eczl4WBUaDccxrH1y/DY8eFPlkgLu2+PZ3RboNJU z1fBElhThD1fjANqpfN76TWKoz3wCRgNebyyysuzs1ys2WuoXn6cwnYEWkMLpiyDGhB1 A6VMu4lwMWvXbFH1t7pBxuVWZyskUn3Zm2jYsLSqoRxzm9znqCW2t3Za1XkhJtWVb/3I lZa3jHaa9MmS+XDmqAqBT9P2ehGvw3SQosY09uSyDqJ8ZA1kA+Hno X-Received: by 10.50.150.180 with SMTP id uj20mr60735igb.7.1364275379016; Mon, 25 Mar 2013 22:22:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.42.198 with SMTP id q6ls50566igl.20.gmail; Mon, 25 Mar 2013 22:22:58 -0700 (PDT) X-Received: by 10.42.38.134 with SMTP id c6mr11451163ice.14.1364275378343; Mon, 25 Mar 2013 22:22:58 -0700 (PDT) Original-Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [2607:f8b0:4003:c01::230]) by gmr-mx.google.com with ESMTPS id fc5si57365igc.0.2013.03.25.22.22.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 22:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of dirk.laurie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c01::230 as permitted sender) client-ip=2607:f8b0:4003:c01::230; Original-Received: by mail-ob0-x230.google.com with SMTP id er7so3114808obc.7 for ; Mon, 25 Mar 2013 22:22:58 -0700 (PDT) X-Received: by 10.60.25.4 with SMTP id y4mr12623886oef.114.1364275378200; Mon, 25 Mar 2013 22:22:58 -0700 (PDT) Original-Received: by 10.76.168.230 with HTTP; Mon, 25 Mar 2013 22:22:58 -0700 (PDT) In-Reply-To: <20130326022137.GC9254-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-Original-Sender: dirk.laurie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dirk.laurie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c01::230 as permitted sender) smtp.mail=dirk.laurie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com 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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:6100 Archived-At: 2013/3/26 John MacFarlane : > g++ Ryan Gray [Mar 25 13 18:14 ]: >> On Sunday, March 17, 2013 11:33:41 PM UTC-6, fiddlosopher wrote: >> >> +++ John MacFarlane [Mar 17 13 21:01 ]: >> > I've added an opml branch on github that does the basics. >> > >> > I still haven't added support for a _note attribute, because >> > I'm not sure I understand how it is to be interpreted. >> > >> > The content of the attribute is a string. But what format? >> > HTML? Markdown? Is there any standard for this? >> Multimarkdown just seems to put raw markdown inside the _note >> attribute. But it seems to me that encoded HTML would be a >> better choice, since the spec is explicit about allowing that >> in the text attribute. >> (Of course, it would be converted to markdown in an opml -> >> markdown conversion.) >> >> I think the idea for MMD was so that for apps that supported the >> attribute, you could edit (or create) the note (which contains the >> content of a section) in Markdown format rather than HTML in whatever >> app you opened or imported the OPML file in. This seems to be a >> sensible thing. Perhaps it would be easy enough to look at the first >> characters in the note to tell if it is HTML or plain text. > > Well, I ended up just parsing the contents of the note attribute as > markdown. > > OPML is now supported (in the dev version) for both input and output. > Try it out! Wikipedia says: Exporting your data from an OPML file to another format can't be done without coding: no free tools are available to convert an OPML file to HTML, Do we wait until Pandoc with OPML support is on Hackage?