This version of the module is deprecated: Use moonbitlang/docx2html instead

    bobzhang/docx2html/docx does not have a README file

    DocxReadResult

    Document tree plus diagnostics produced while reading a DOCX package.

    convert

    fn convert(docx : BytesView, output_format? :
    OutputFormat
    , style_map? : Array[String], include_default_style_map? : Bool, include_embedded_style_map? : Bool, ignore_empty_paragraphs? : Bool, id_prefix? : String, pretty_print? : Bool, convert_image? : (
    Image
    ) ->
    ImageConversion
    , transform_document? : (
    DocumentElement
    ) ->
    DocumentElement
    , external_file_access? : Bool, read_external_file? : (String) -> Bytes?) ->
    ConversionResult
    raise
    DocxError

    Converts DOCX bytes using the requested output format.

    convert_to_html

    fn convert_to_html(docx : BytesView, style_map? : Array[String], include_default_style_map? : Bool, include_embedded_style_map? : Bool, ignore_empty_paragraphs? : Bool, id_prefix? : String, pretty_print? : Bool, convert_image? : (
    Image
    ) ->
    ImageConversion
    , transform_document? : (
    DocumentElement
    ) ->
    DocumentElement
    , external_file_access? : Bool, read_external_file? : (String) -> Bytes?) ->
    ConversionResult
    raise
    DocxError

    Converts DOCX bytes to HTML.

    convert_to_markdown

    fn convert_to_markdown(docx : BytesView, style_map? : Array[String], include_default_style_map? : Bool, include_embedded_style_map? : Bool, ignore_empty_paragraphs? : Bool, id_prefix? : String, convert_image? : (
    Image
    ) ->
    ImageConversion
    , transform_document? : (
    DocumentElement
    ) ->
    DocumentElement
    , external_file_access? : Bool, read_external_file? : (String) -> Bytes?) ->
    ConversionResult
    raise
    DocxError

    Converts DOCX bytes to Markdown.

    embed_style_map

    fn embed_style_map(docx : BytesView, style_map : String) -> Bytes raise
    DocxError

    Embeds or replaces the DOCX style map part.

    extract_raw_text

    fn extract_raw_text(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) ->
    ConversionResult
    raise
    DocxError

    Extracts raw text from DOCX bytes.

    read_docx

    fn read_docx(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) ->
    DocumentElement
    raise
    DocxError

    Reads DOCX bytes into a document tree.

    read_docx_with_messages

    fn read_docx_with_messages(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocxReadResult raise
    DocxError

    Reads DOCX bytes into a document tree and diagnostics.

    read_embedded_style_map

    fn read_embedded_style_map(docx : BytesView) -> String? raise
    DocxError

    Reads the embedded style map from DOCX bytes, if present.