src/cm/converters/__init__.py
changeset 57 b32aa76ee411
parent 50 6db6c011a310
child 77 fe91eb717a96
equal deleted inserted replaced
56:bd8a4ffc7dad 57:b32aa76ee411
    38     # anything looks like text -> markdown
    38     # anything looks like text -> markdown
    39     elif mime_type in ['text/plain',
    39     elif mime_type in ['text/plain',
    40                        'text/english',
    40                        'text/english',
    41                        'text/enriched'
    41                        'text/enriched'
    42                       ]:
    42                       ]:
    43         converted_input = input
    43         converted_input = to_unicode(input)
    44         
    44         
    45     ##############################
    45     ##############################
    46     # anything looks like code: put them into markdown citation
    46     # anything looks like code: put them into markdown citation
    47     elif mime_type.startswith('text/x-') or mime_type in ['application/x-latex',
    47     elif mime_type.startswith('text/x-') or mime_type in ['application/x-latex',
    48                                                           'application/x-ruby',
    48                                                           'application/x-ruby',