#NEWLINE# def _markdown_with_perl( text ) : #NEWLINE# #INDENT# markdown_pl = join ( dirname ( __file__ ) , 'Markdown.pl' ) #NEWLINE# if ( not exists ( markdown_pl ) ) : #NEWLINE# #INDENT# raise OSError ( ( "`%s' does not exist: get it from http://daringfireball.net/projects/markdown/" % html ) ) #NEWLINE# #UNINDENT# ( i , o ) = os . popen2 ( ( 'perl %s' % markdown_pl ) ) #NEWLINE# i . write ( text ) #NEWLINE# i . close ( ) #NEWLINE# html = o . read ( ) #NEWLINE# o . close ( ) #NEWLINE# return html