Exemplo n.º 1
0
def convert_md2epub(text):
    # ReturnValues: OpenedText, ToFormat, FromFormat, ExtraArguments (divided by blanks, if empty, use '')
    output = convert(text, 'epub', 'md', '-o test.epub')

    return output
Exemplo n.º 2
0
def convert_html2opml(text):
    # ReturnValues: OpenedText, ToFormat, FromFormat, ExtraArguments (divided by blanks)
    output = convert(text, 'opml', 'html', '--standalone')

    return output
Exemplo n.º 3
0
def convert_universal(text,ToFormat,FromFormat,arg):
    # ReturnValues: OpenedText, ToFormat, FromFormat, ExtraArguments (divided by blanks, if empty, use '')
    output = convert(text, ToFormat, FromFormat, arg)

    return output
Exemplo n.º 4
0
def convert_html2markdown(text):
    # ReturnValues: OpenedText, ToFormat, FromFormat, ExtraArguments (divided by blanks)
    output = convert(text, 'md', 'html', '--atx-headers')

    return output
Exemplo n.º 5
0
def convert_md2html(text):
    # ReturnValues: OpenedText, ToFormat, FromFormat, ExtraArguments (divided by blanks, if empty, use '')
    output = convert(text, 'html', 'md', '--standalone')

    return output