aboutsummaryrefslogtreecommitdiff
path: root/mammoth/__init__.py
blob: 90ab76473bdb116e408b8bd3799800b8e3c77955 (plain)
1
2
3
4
5
6
7
8
9
10
11
from .results import Result
from . import docx, conversion, options


def convert_to_html(fileobj, **kwargs):
    return docx.read(fileobj).bind(lambda document: 
        conversion.convert_document_element_to_html(
            document,
            **options.read_options(kwargs)
        )
    )