From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70334 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Processing markdown Date: Fri, 29 Jul 2011 22:38:17 +0200 Message-ID: <4E331A39.7040600@wxs.nl> References: <003c01cc4956$c1e18820$45a49860$@gmx.de> <64AF744D-BEA6-420C-B5CF-8A62A45499F1@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311971971 21668 80.91.229.12 (29 Jul 2011 20:39:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2011 20:39:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 29 22:39:26 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmtqA-0007E3-6g for gctc-ntg-context-518@m.gmane.org; Fri, 29 Jul 2011 22:39:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EEC6DCAEA7; Fri, 29 Jul 2011 22:39:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OqzeC3h2N+-O; Fri, 29 Jul 2011 22:39:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A60BCAE9A; Fri, 29 Jul 2011 22:39:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98AB5CAE9A for ; Fri, 29 Jul 2011 22:39:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P+RSuI1cBAVh for ; Fri, 29 Jul 2011 22:39:10 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 09520CAE56 for ; Fri, 29 Jul 2011 22:39:10 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6TKd8U3019525 for ; Fri, 29 Jul 2011 22:39:09 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 5.2a) with ESMTP id 3645-1713362 for multiple; Fri, 29 Jul 2011 22:38:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aFdUD8p5 - dea16ed52074 - 20110729 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:70334 Archived-At: On 29-7-2011 8:08, Aditya Mahajan wrote: > On Thu, 28 Jul 2011, Wolfgang Schuster wrote: > >> >> Am 28.07.2011 um 00:21 schrieb Aditya Mahajan: >> >>> @Hans: do you think that it is a good idea to include something like >>> this in the m-markdown module so that a user could say >>> >>> context --usemodule=3Dmarkdown --mode=3Dprocess file.markdown >>> >>> and get a pdf output. >> >> It=92s already there: >> >> context --extra=3Dmarkdown file.markdown > > Does not work. `context --extra=3Dmarkdown filename` just gives a list of > available extras (including markdown), but the file is not processed. Is there a mtx-context-markdown.tex file on your system? What happens if = you do: context --extra=3Dmarkdown --help mtx-context | mtx-context | extra: markdown = (c:/data/develop/context/sources/mtx-context-markdown.tex) mtx-context | mtx-context | usage: context --extra=3Dmarkdown [options] list-of-files mtx-context | mtx-context | --sort : sort filenames first mtx-context | --paperoffset=3Ddimension : left-top-offset mtx-context | --duplex : doublesided (singlesided is = default) mtx-context | --backspace=3Ddimension : extra left offset mtx-context | --topspace=3Ddimension : extra top offset mtx-context | --bodyfont=3Dspecification : additional bodyfont = specification mtx-context | --contents : add table of contents >> There are limitations in Hans method because you can=92t define complete= ly >> customized styles with it and the basic markdown tags are not enough to >> produce a document title (should be simple with the multimarkdown >> extensions). > > Or pandoc's extensions. In due time we can extend the parser (given that I know the specs). Btw, = the more extensions you have, the more one can consider other approached = (context with export or just xml). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________