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 ___________________________________________________________________________________