From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11815 Path: news.gmane.org!not-for-mail From: Ivan Lazar Miljenovic Newsgroups: gmane.text.pandoc Subject: Re: Graphviz python filter without using pygraphviz Date: Thu, 22 Jan 2015 21:18:08 +1100 Message-ID: References: <229bfb34-a5bd-4b31-8511-ef9573585990@googlegroups.com> <1b3951ec-ae53-4943-a4a9-ed5362dc9434@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421921901 20743 80.91.229.3 (22 Jan 2015 10:18:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 10:18:21 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC2L5ZPTZEOBBYE4QOTAKGQELLXFREI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 22 11:18:11 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yk0-f188.google.com ([209.85.160.188]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEEq1-0000gZ-GD for gtp-pandoc-discuss@m.gmane.org; Thu, 22 Jan 2015 11:18:09 +0100 Original-Received: by mail-yk0-f188.google.com with SMTP id q9sf121975ykb.5 for ; Thu, 22 Jan 2015 02:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=SjO+wiZ1SSSFsmNn7lHhL2+P+zPhWrFKs8F0rbCQx00=; b=cPxLlP2Fu27tqRQzdqjkwZUSAjU1s+oBM3lx+w4DsjvrA9L85/fO32f/HqTLutgg2f NQlSuRvIJgXtPzo8ENLIR+7GrL3zuSUR2JEbq40/q+5QvLQRKwG0MTSNhcf5BTQz/LuC 1xRCPntMBiRdwpfw1M6SLSWoPVDyLjavj5wNzYpmgLNLjmENusrUM9ZnREsCe2S6qKY8 F3nRyTQwNyzXu/RpFaKFL7ZsvVr/x5WLupzyE2xZs6nq9zSxEMLdNnpfhORfywIm/obP m+052mcqG+8tNCW2zU0lkUBpZ3ek1U+Kt08z0JMQjO7tI5IQpDA2DQVVL+mNPDVzvjbI 72eQ== X-Received: by 10.50.7.100 with SMTP id i4mr39472iga.11.1421921888806; Thu, 22 Jan 2015 02:18:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.141.135 with SMTP id ro7ls1050313igb.38.gmail; Thu, 22 Jan 2015 02:18:08 -0800 (PST) X-Received: by 10.42.62.203 with SMTP id z11mr1402627ich.9.1421921888479; Thu, 22 Jan 2015 02:18:08 -0800 (PST) Original-Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com. [2607:f8b0:400e:c03::230]) by gmr-mx.google.com with ESMTPS id i13si235724pbq.0.2015.01.22.02.18.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 02:18:08 -0800 (PST) Received-SPF: pass (google.com: domain of ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c03::230 as permitted sender) client-ip=2607:f8b0:400e:c03::230; Original-Received: by mail-pa0-x230.google.com with SMTP id ey11so926334pad.7 for ; Thu, 22 Jan 2015 02:18:08 -0800 (PST) X-Received: by 10.70.135.165 with SMTP id pt5mr834506pdb.37.1421921888218; Thu, 22 Jan 2015 02:18:08 -0800 (PST) Original-Received: by 10.70.42.47 with HTTP; Thu, 22 Jan 2015 02:18:08 -0800 (PST) In-Reply-To: X-Original-Sender: ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c03::230 as permitted sender) smtp.mail=ivan.miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=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: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:11815 Archived-At: Good, especially since I didn't get around to playing with it to see if I could get it to work :p On 22 January 2015 at 20:49, Mohammed Haris Minai wrote: > I figured out my mistake. The first codeblock has a comma separating the > attributes. This somehow causes pandoc to assume this is not a codeblock. > > So now the filter works! > > > On Wednesday, January 21, 2015 at 8:28:39 PM UTC+5:30, Mohammed Haris Minai > wrote: >> >> >> Well, I am simply completely uncomfortable with Haskell (and python as >> well). Anyway having seen the gitit and the examples john has given I gave >> it a shot. >> >> Am attching the filter (Example.hs), a sample pdc file(input.pdc) and the >> markdown output I get when I use the filter (output.pdc). Somehow my first >> code block is not transformed whereas the second one is. Could someone >> please help me out here. >> >> I compiled Example.hs file using "ghc --make Example.hs" then used: >> >> pandoc --filter ./Example -t markdown input.pdc > output.pdc >> >> This is the first time I have touched haskell code, so please forgive any >> blunders I have made, I have simply tried to combine the gitit plugin with >> some code pointed out earlier to me by jon + some understanding from what >> the pandoc page says about scripting. I almost have no idea how it is even >> working. >> >> On Wednesday, January 21, 2015 at 5:42:33 PM UTC+5:30, Ivan Miljenovic >> wrote: >>> >>> Is there any reason you can't use that gitit filter directly? > > -- > 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/ff78de30-d031-4b5b-9021-be32c111db2b%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Ivan Lazar Miljenovic Ivan.Miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://IvanMiljenovic.wordpress.com