Markdown to Word (.docx)
ai_markdown_to_docxConvert GitHub-flavored Markdown into a real Word .docx with headings, lists, tables, code blocks and automatic right-to-left Arabic/Hebrew layout.
Instructions
Convert Markdown (GitHub flavoured) to a real Word .docx: headings H1-H6 (Word heading styles, so the navigation pane and table of contents work), paragraphs with bold, italic, strikethrough, inline code and clickable links, bullet and numbered lists (nested, numbering restarts per list, task-list checkboxes), tables (header row shaded, column alignment kept), blockquotes, fenced code blocks in a monospace font, horizontal rules, and a page break wherever a line says \newpage. Arabic/Hebrew paragraphs are laid out right-to-left automatically (rtl: "auto"). Images are not embedded (their alt text is shown); raw HTML tags are dropped. Options: title and author (document properties), font (default Calibri), fontSize. Give "markdown" inline or "path" to a .md file. Writes the .docx to "output" (default name from the title or first heading).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rtl | No | Right-to-left paragraphs: "auto" (detect Arabic/Hebrew per paragraph), "on" or "off". | auto |
| font | No | Body font (default Calibri). | Calibri |
| path | No | Or: a Markdown file (local path or base64). | |
| title | No | Document title (file properties, and the default file name). | |
| author | No | Author shown in the file properties. | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| fontSize | No | Body font size in points (default 11). | |
| markdown | No | The Markdown text inline. | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. |