Пример #1
0
 def html_output(self):
     if self.format == "rest":
         output = rst2html(self.content, "html_body")
     elif self.format == "plain":
         output = plain2html(self.content)
     else:
         output = self.content
     return output
Пример #2
0
#!/usr/bin/env python

import sys
from wonder.plain2html import plain2html

src = file(sys.argv[1]).read()
print plain2html(src)