[NTG-context] HTML to ConTeXt

Aditya Mahajan adityam at umich.edu
Fri Oct 26 06:22:46 CEST 2007


On Thu, 25 Oct 2007, Idris Samawi Hamid wrote:

> Hi Aditya,
>
> On Thu, 25 Oct 2007 08:50:03 -0600, Aditya Mahajan <adityam at umich.edu>
> wrote:
>
>> This is interesting. A website that converts html to context
>> (actually uses markdown behind the scenes).
>>
>> http://johnmacfarlane.net/pandoc/html2x.html
>>
>> This is how the context wiki looks like.
>>
>> http://johnmacfarlane.net/cgi-bin/html2x.pl?url=http%3A%2F%2Fwiki.contextgarden.net%2FMain_Page&format=context
>>
>> The program is written in haskell and is also available for download.
>> You can use it to convert markdown to context. I had been looking for
>> this for a while, when multiple formats are needed. Write in markdown
>> and generate html or context. I do not completely like the context
>> output it generates (for example
>> http://johnmacfarlane.net/pandoc/README gets converted to
>> http://johnmacfarlane.net/pandoc/example11.tex.html)
>
> This looks very promising. Perhaps some of us can help the developers to
> improve the ConTeXt support.
>
I will explore pandoc in more detail in the future. I am more 
interested in it from the point of view of understanding Haskell 
parsers, but improving the context output will definitely not hurt.

Aditya


More information about the ntg-context mailing list