(text)
| 34 | opts = 0 # defaults |
| 35 | |
| 36 | def md2html(text): |
| 37 | text = text.encode('utf-8') |
| 38 | cstring = markdown(text, len(text), opts) |
| 39 | result = string_at(cstring).decode('utf-8') |
| 40 | free_func(cstring) |
| 41 | return result |
| 42 | |
| 43 | sys.stdout.write(md2html(sys.stdin.read())) |