DOCX → Markdown icon

DOCX → Markdown

Convert a .docx document to Markdown

DOCX → Markdown

AI-generated

Summary

Convert a .docx document to Markdown, outputting either JSON with the Markdown (and optionally HTML) or a binary .md file.

Inputs

  • binaryPropertyName — Name of the input binary property that contains the .docx file (default: data).
  • outputMode — Choose output format: 'json' for Markdown in a JSON field, or 'binary' for a .md file as binary data (default: json).
  • markdownField — Name of the JSON field to store Markdown when outputMode=json (default: markdown).
  • includeHtml — Whether to also include HTML version in the JSON output when outputMode=json (default: false).
  • preserveStructure — Whether to try to preserve headings, lists, and tables during conversion (default: true).
  • outputBinaryProperty — Binary property to write the .md into when outputMode=binary (default: data).
  • outputFilename — Filename for the generated .md file when outputMode=binary (default: document.md).

Output shape

Depends on outputMode.

All items retain original JSON fields and include a warnings array from the conversion process.

Examples

Example 1: JSON output

binaryPropertyName='data', outputMode='json', markdownField='markdown', includeHtml=true, preserveStructure=true

Example 2: Binary output

binaryPropertyName='data', outputMode='binary', outputBinaryProperty='md', outputFilename='converted.md'

Discussion