From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70159 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: markdown Date: Tue, 19 Jul 2011 19:25:11 +0200 Message-ID: <91CAD91A-6D77-4B8F-A9B2-E554A9194975@googlemail.com> References: <4E258F19.1050301@wxs.nl> <20110719170848.GB4758@khaled-laptop> <4E25BB81.3050607@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311096341 27837 80.91.229.12 (19 Jul 2011 17:25:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2011 17:25:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 19 19:25:36 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 1QjE36-0005wG-4A for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jul 2011 19:25:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E06B2CAE4D; Tue, 19 Jul 2011 19:25:34 +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 bVRBArbEz5ps; Tue, 19 Jul 2011 19:25:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2D3FCAE47; Tue, 19 Jul 2011 19:25:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29F10CAE47 for ; Tue, 19 Jul 2011 19:25:28 +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 W6dPNKdfXh81 for ; Tue, 19 Jul 2011 19:25:15 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 0658ACAE11 for ; Tue, 19 Jul 2011 19:25:15 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6JHPERY018360 for ; Tue, 19 Jul 2011 19:25:14 +0200 Original-Received: by fxe23 with SMTP id 23so337994fxe.15 for ; Tue, 19 Jul 2011 10:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=6imvsd+zuI/hjVTLcePfp/LfQNsOPwnk96X9mT7Rkeo=; b=ILjeszWlDggEHaKFt+mN4XFXKZWuuo/B6uyqtLc7co12u1mVsB7UU1Gr7myAGDzMJw e1fNOeEttT/jbLdTNJgGOeWK2zgwmBLo7H2p0GXCcdcvufQwMJGTEkJeHnD2F3ZfoRNx 26cX5RwODdt/lBgOM6EhD4HPDyzJsIoKzrG1w= Original-Received: by 10.223.13.211 with SMTP id d19mr270011faa.67.1311096314001; Tue, 19 Jul 2011 10:25:14 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482DD8E.dip.t-dialin.net [84.130.221.142]) by mx.google.com with ESMTPS id o17sm94849fal.2.2011.07.19.10.25.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jul 2011 10:25:13 -0700 (PDT) In-Reply-To: <4E25BB81.3050607@wxs.nl> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eF9Rpeub - b4940b70c6ba - 20110719 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:70159 Archived-At: Am 19.07.2011 um 19:14 schrieb Hans Hagen: > On 19-7-2011 7:08, Khaled Hosny wrote: >> On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: >>> Hi Khaled, >>> >>> I took a look at the lunamark code, and ran it on some (copied) >>> sample. As it was much slower than I'd expected from lpeg I messed >>> around a little and could bring down the runtime on the sample from >>> 2 sec to 0.1 sec. Anyhow, there is room for improvement so I wonder >>> If I should take the code, wrap it up a bit, and make a module so >>> that we can directly process markdown in context. (Of course we then >>> need to keep an eye on how the original develops, if mkdown develops >>> at all.) >> >> That would be great! That was my intent when I started hacking lunamrk >> to include a ConTeXt writer, by due to lack of time I never managed to >> do the ConTeXt module part. > > Ok, I'll give it a try and you can do the checking. Can you then also add a few features: - Headings use \startstructurelevel - Paragraphs are enclosed in startparagraph/stopparagraph - emphasis and bold styles use \definehiglight command to make it possible to change the layout of markdown documents where ConTeXt is only used to produce a PDF. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________