New Layout
[ rakaur on Mon Nov 08 at 06:14 PM // category: programming, technology, web ]
Okay, so I have a new site design done. The main problem is Markdown.
Markdown is the markup language I use to format all of my publications. The problem is, Markdown is written in Perl. This blog is written in PHP (which I hate), and uses PHP Markdown. The new blog is written in Python (because I actually enjoy writing things in this language) and there is no Markdown parser for Python.
I have three options, ordered in preference:
Write my own Python Markdown. I’d love to do this; however, Markdown is an insanely complex syntax to parse, and I wouldn’t be able to do a port of the Perl Markdown for crap. I could try to do my own from scratch… maybe. Maybe I could understand the PHP one better than the Perl one, at least.
Use a PHP script and PHP Markdown to do the processing. Use Python’s
urllibto send the text to Markdownize to the PHP script. This involves opening a socket, sending the text, letting the PHP script invoke and process the text, get the formatted text back, and do something with it. This is the solution I’m using currently, but it’s insanely high overhead. Unacceptable.Use Python’s
os.popen()to pipe the information into the Perl Markdown script and grab the output. This is insanely high overhead, and definitely not acceptable.
If anyone has any ideas I’m all ears. Until the Markdown situation is resolved I can’t put up the new design (breaks your hearts, I know).
-- rakaur // 2004.11.08 @ 06:14 PM
0 TrackBacks
Listed below are links to blogs that reference this entry.
TrackBack URL for this entry: http://mt.ericw.org/mt-tb.cgi/40
