Markdown to DOCX icon

Markdown to DOCX

Convert Markdown text to a DOCX document

Markdown to DOCX

AI-generated

Summary

Convert Markdown text to a DOCX document.

Inputs

  • source — Where to read the Markdown content from
  • markdownField (required) — Name of the JSON field that contains the Markdown string
  • binaryPropertyName (required) — Name of the binary property containing a text/markdown file
  • filename (required) — Filename for the generated DOCX
  • outputBinaryProperty (required) — Name of the binary property to store the DOCX file in
  • documentType — Type of document to generate
  • advancedOptions — Advanced formatting options for the DOCX

Output shape

An array of objects, each containing the original input JSON and a binary DOCX file under the specified outputBinaryProperty

If an error occurs processing an item it may be included in the JSON with an error field; otherwise each item includes the generated DOCX as binary data.

Examples

Example 1: Convert markdown from field `content` to a DOCX named `report.docx` stored in binary property `data`.

source=fromField&markdownField=content&filename=report.docx&outputBinaryProperty=data

Example 2: Read markdown from a binary file and generate a report document.

source=fromBinary&binaryPropertyName=file&markdownField=content&filename=report.docx&outputBinaryProperty=data

Example 3: Generate a document type 'report' with custom heading sizes.

source=fromField&markdownField=text&documentType=report&advancedOptions={"heading1Size":48,"heading2Size":36}

Discussion