ONLYOFFICE Docs icon

ONLYOFFICE Docs

Consume ONLYOFFICE Document Server API (Conversion, Document Builder)

Document Builder → Markdown to Document

AI-generated

Summary

Converts required Markdown text into a formatted document using ONLYOFFICE Document Builder. Supports headings, bold and italic text, bullet and numbered lists, inline code, and fenced code blocks; choose DOCX, PDF, or PPTX output.

Inputs

  • Markdown (required) — Markdown text to convert.
  • Output Format — Document format to generate: DOCX (default), PDF, or PPTX.
  • Output Mode — Choose File Data (default) to download the generated file as binary, or URL Only to return its Document Server URL without downloading.
  • Output File Name — Base name for the generated file, without extension; defaults to output. Used in the returned fileName.
  • Put Output File in Field — Binary field name for the generated file when Output Mode is File Data; defaults to data.

Output shape

A single item per input item, containing JSON metadata and, in File Data mode, a binary file.

JSON includes fileName, operation, and outputUrl. File Data mode also includes the file under the configured binary field; URL Only mode omits binary data. The implementation creates a DOCX internally before saving in the selected output format. Markdown handling is limited to the constructs implemented by the converter; unsupported syntax is not specially formatted.

Links

Discussion