bobzhang/docx2html/docx does not have a README file
pub struct AnnotationAnchor {
// private fields
}impl Show for AnnotationBoundarypub struct AnnotationIndex {
// private fields
}pub struct CommentInfo {
// private fields
}pub struct CommentSpec {
// private fields
}pub struct DocxAnnotatedResult {
// private fields
}fn DocxAnnotatedResult::body_paragraph_span(self : DocxAnnotatedResult, relative_path : String) -> NodeSpan?fn DocxAnnotatedResult::body_run_span(self : DocxAnnotatedResult, relative_path : String) -> NodeSpan?fn DocxAnnotatedResult::comment_bodies(self : DocxAnnotatedResult) -> Array[(String, Array[DocumentElement])]fn DocxAnnotatedResult::endnote_bodies(self : DocxAnnotatedResult) -> Array[(String, Array[DocumentElement])]fn DocxAnnotatedResult::footer_story_sources(self : DocxAnnotatedResult) -> Array[DocxStoryPartSource]fn DocxAnnotatedResult::footnote_bodies(self : DocxAnnotatedResult) -> Array[(String, Array[DocumentElement])]fn DocxAnnotatedResult::header_story_sources(self : DocxAnnotatedResult) -> Array[DocxStoryPartSource]fn DocxAnnotatedResult::story_paragraph_span(self : DocxAnnotatedResult, story : String, relative_path : String) -> NodeSpan?fn DocxAnnotatedResult::story_row_span(self : DocxAnnotatedResult, story : String, relative_path : String) -> NodeSpan?fn DocxAnnotatedResult::story_run_span(self : DocxAnnotatedResult, story : String, relative_path : String) -> NodeSpan?pub struct DocxInsertReceipt {
// private fields
}pub struct DocxMatch {
ordinal : Int
story : String
path : String
start : Int
end : Int
text : String
context_before : String
context_after : String
runs : Array[String]
run_kinds : Array[String]
actionable : Bool
reason : String
para_id : String?
anchor_status : String
physical_para_ids : Array[String]
}pub(all) struct DocxPackageResult {
document : DocumentElement
headers : Array[HeaderFooterPart]
footers : Array[HeaderFooterPart]
sections : Array[DocumentSection]
messages : Array[Message]
} derive(Eq, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxPackageResult::equal(DocxPackageResult, DocxPackageResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxPackageResult::not_equal(x : DocxPackageResult, y : DocxPackageResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxPackageResult::to_repr(DocxPackageResult) -> Reprpub enum DocxParaIdCarrierResolution {
ResolvedCarrier(Int)
CarrierInvalid
CarrierNotFound
CarrierAmbiguous(Array[Int])
CarrierInMultiPhysical
}pub enum DocxParaIdResolution {
ResolvedOccurrence(Int, Int)
ParaIdInvalid
ParaIdNotFound
ParaIdAmbiguous(Array[Int])
ParaIdInMultiPhysical
ParaIdUnjoined(Int)
}pub struct DocxParagraphAnchor {
// private fields
}pub struct DocxParagraphAnchorIndex {
// private fields
}fn DocxParagraphAnchorIndex::anchor_at(self : DocxParagraphAnchorIndex, path : String) -> DocxParagraphAnchor?fn DocxParagraphAnchorIndex::anchor_of_paragraph(self : DocxParagraphAnchorIndex, paragraph_index : Int) -> DocxParagraphAnchor?fn DocxParagraphAnchorIndex::paragraphs_with_para_id(self : DocxParagraphAnchorIndex, canonical : String) -> Array[Int]fn DocxParagraphAnchorIndex::resolve_para_id_carrier(self : DocxParagraphAnchorIndex, raw : String) -> DocxParaIdCarrierResolutionfn DocxParagraphAnchorIndex::scan_path_of_paragraph(self : DocxParagraphAnchorIndex, paragraph_index : Int) -> String?pub struct DocxParagraphAnchorJoinIndex {
// private fields
}fn DocxParagraphAnchorJoinIndex::anchor_index(self : DocxParagraphAnchorJoinIndex) -> DocxParagraphAnchorIndexfn DocxParagraphAnchorJoinIndex::join_of_occurrence(self : DocxParagraphAnchorJoinIndex, occurrence : Int) -> DocxParagraphJoin?fn DocxParagraphAnchorJoinIndex::occurrence_of_paragraph(self : DocxParagraphAnchorJoinIndex, paragraph_index : Int) -> Int?fn DocxParagraphAnchorJoinIndex::resolve_para_id(self : DocxParagraphAnchorJoinIndex, raw : String) -> DocxParaIdResolutionpub(all) struct DocxReadResult {
document : DocumentElement
messages : Array[Message]
} derive(Eq, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxReadResult::equal(DocxReadResult, DocxReadResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxReadResult::not_equal(x : DocxReadResult, y : DocxReadResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocxReadResult::to_repr(DocxReadResult) -> Reprpub struct DocxReplaceAffected {
path : String
expected : String
para_id : String?
anchor_status : String
}pub struct DocxReplaceReceipt {
selected : Array[Int]
replaced : Int
affected : Array[DocxReplaceAffected]
matches : Array[DocxMatch]
}pub enum DocxStoryPartAuthority {
RelationshipBacked
LegacyFilenameFallback
}pub struct DocxStoryPartSource {
// private fields
}pub struct HeaderFooterSpec {
// private fields
}pub struct NodeSpan {
// private fields
}pub struct NoteInfo {
// private fields
}pub struct NoteSpec {
// private fields
}pub struct RevisionInfo {
// private fields
}pub struct RevisionNameEdit {
// private fields
}pub struct RevisionSpan {
// private fields
}pub struct RunTextReceipt {
// private fields
}let MAX_AUTHORED_MEDIA_BYTES : Int64let MAX_AUTHORED_MEDIA_PARTS : Intfn author_docx_bytes(script : BatchScript, images : Map[String, Bytes], limits? : PackageLimits) -> Bytes raise DocxErrorfn comment_anchor_fragments(id~ : String, wordprocessing_namespace? : String) -> (String, String)fn comment_definition_fragment(spec : CommentSpec, id~ : String, para_ids? : Array[String], max_output_bytes? : Int, wordprocessing_namespace? : String) -> String raise DocxErrorfn comment_reply(author~ : String, initials? : String, date? : String, reply_to~ : Int, done? : Bool, body : Array[DocumentElement]) -> CommentSpec raise DocxErrorfn comment_spec(author~ : String, initials? : String, date? : String, from~ : Int, to~ : Int, done? : Bool, body : Array[DocumentElement]) -> CommentSpec raise DocxErrorfn 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 DocxErrorfn 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 DocxErrorfn 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 DocxErrorfn docx_paragraph_anchor_index(annotated : DocxAnnotatedResult, story : DocxStoryPartSource) -> DocxParagraphAnchorIndex raise DocxErrorfn docx_paragraph_anchor_join_index(annotated : DocxAnnotatedResult, story : DocxStoryPartSource) -> DocxParagraphAnchorJoinIndex raise DocxErrorfn docx_paragraph_projection(annotated : DocxAnnotatedResult, story : DocxStoryPartSource, path~ : String) -> String?fn extract_raw_text(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> ConversionResult raise DocxErrorfn find_docx_matches(annotated : DocxAnnotatedResult, story : DocxStoryPartSource, needle~ : String, within? : String, context? : Int, limit? : Int) -> DocxMatchList raise DocxErrorfn header_footer_spec(variant~ : String, body : Array[DocumentElement]) -> HeaderFooterSpec raise DocxErrorfn new_blank_docx() -> Bytesfn para_id_inventory_archive_limited(annotated : DocxAnnotatedResult, archive : Archive, xml_budget : XmlReadBudget) -> Map[String, Array[String]] raise DocxErrorfn plan_comment_addition(annotated : DocxAnnotatedResult, original : BytesView, at_relative~ : String, to_relative~ : String, spec : CommentSpec, max_fragment_bytes? : Int) -> (SplicePlan, String) raise DocxErrorfn plan_comment_addition_archive(annotated : DocxAnnotatedResult, archive : Archive, at_relative~ : String, to_relative~ : String, spec : CommentSpec, xml_budget? : XmlReadBudget, max_fragment_bytes? : Int) -> (SplicePlan, String) raise DocxErrorfn plan_comment_reply(annotated : DocxAnnotatedResult, original : BytesView, parent_id~ : String, spec : CommentSpec, max_fragment_bytes? : Int) -> (SplicePlan, String) raise DocxErrorfn plan_comment_reply_archive(annotated : DocxAnnotatedResult, archive : Archive, parent_id~ : String, spec : CommentSpec, xml_budget? : XmlReadBudget, max_fragment_bytes? : Int) -> (SplicePlan, String) raise DocxErrorfn plan_comment_resolution(annotated : DocxAnnotatedResult, original : BytesView, comment_id~ : String, done~ : Bool) -> SplicePlan raise DocxErrorfn plan_comment_resolution_archive(annotated : DocxAnnotatedResult, archive : Archive, comment_id~ : String, done~ : Bool, xml_budget? : XmlReadBudget) -> SplicePlan raise DocxErrorfn plan_docx_paragraph_insertion(annotated : DocxAnnotatedResult, at~ : String, before~ : Bool, content~ : DocxInsertContent, used_para_ids~ : Array[String]) -> (SplicePlan, DocxInsertReceipt) raise DocxErrorfn plan_docx_replacements(annotated : DocxAnnotatedResult, story : DocxStoryPartSource, needle~ : String, replacement~ : String, within? : String, nth? : Int) -> (SplicePlan, DocxReplaceReceipt) raise DocxErrorfn plan_run_text_replacement(annotated : DocxAnnotatedResult, story : DocxStoryPartSource, at_relative~ : String, expect~ : String, text~ : String) -> (SplicePlan, RunTextReceipt) raise DocxErrorfn read_docx(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocumentElement raise DocxErrorfn read_docx_annotated(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocxAnnotatedResult raise DocxErrorfn read_docx_annotated_archive(archive : Archive, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocxAnnotatedResult raise DocxErrorfn read_docx_annotated_archive_joined_projection_limited(archive : Archive, xml_budget : XmlReadBudget, external_file_access? : Bool, read_external_file? : (String) -> Bytes?, max_diagnostics? : Int, max_diagnostic_chars? : Int, expected_main_document_path? : String) -> DocxAnnotatedResult raise DocxErrorfn read_docx_annotated_archive_limited(archive : Archive, xml_budget : XmlReadBudget, external_file_access? : Bool, read_external_file? : (String) -> Bytes?, max_diagnostics? : Int, max_diagnostic_chars? : Int, expected_main_document_path? : String) -> DocxAnnotatedResult raise DocxErrorfn read_docx_annotated_archive_tolerant_limited(archive : Archive, xml_budget : XmlReadBudget, external_file_access? : Bool, read_external_file? : (String) -> Bytes?, max_diagnostics? : Int, max_diagnostic_chars? : Int, expected_main_document_path? : String) -> DocxAnnotatedResult raise DocxErrorfn read_docx_package(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocxPackageResult raise DocxErrorfn read_docx_with_messages(docx : BytesView, external_file_access? : Bool, read_external_file? : (String) -> Bytes?) -> DocxReadResult raise DocxErrorfn sweep_archive_para_id_values(archive : Archive, fresh_budget~ : () -> XmlReadBudget) -> Array[String] raise DocxErrorfn validate_global_para_id_state_archive_limited(annotated : DocxAnnotatedResult, archive : Archive, xml_budget : XmlReadBudget) -> Unit raise DocxErrorfn validated_para_id(raw : String) -> String?fn write_docx_with_annotations(body : Array[DocumentElement], comments? : Array[CommentSpec], footnotes? : Array[NoteSpec], endnotes? : Array[NoteSpec], headers? : Array[HeaderFooterSpec], footers? : Array[HeaderFooterSpec], limits? : PackageLimits) -> Bytes raise DocxErrorfn write_docx_with_comments(body : Array[DocumentElement], comments : Array[CommentSpec]) -> Bytes raise DocxErrorInstall
Download zipNative MoonBit DOCX to HTML/Markdown converter ported from Mammoth
Dependencies