--- a/src/cm/converters/__init__.py Mon Jan 11 16:29:48 2010 +0100
+++ b/src/cm/converters/__init__.py Wed Jan 13 18:15:21 2010 +0100
@@ -35,14 +35,6 @@
converted_input = pandoc_convert(xhtml_input, 'html', format)
##############################
- # anything looks like text -> markdown
- elif mime_type in ['text/plain',
- 'text/english',
- 'text/enriched'
- ]:
- converted_input = to_unicode(input)
-
- ##############################
# anything looks like code: put them into markdown citation
elif mime_type.startswith('text/x-') or mime_type in ['application/x-latex',
'application/x-ruby',
@@ -56,6 +48,18 @@
converted_input = input
else:
converted_input = pandoc_convert(input, 'html', format)
+ ##############################
+ # anything looks like text -> markdown
+ elif mime_type in ['text/plain',
+ 'text/english',
+ 'text/enriched'
+ ]:
+ converted_input = to_unicode(input)
+ ##############################
+ # default case: assume it's text
+ else:
+ converted_input = to_unicode(input)
+
return converted_input, attachs