blob: 1fca3d6837c72953d30b9fa8bfb8d7705749c0b9 (
plain)
1
2
3
4
5
6
7
8
|
from .results import Result
from . import docx, conversion
def convert_to_html(fileobj):
document = docx.read(fileobj).value
html = conversion.convert_document_element_to_html(document).value
return Result(html, [])
|