Markdown to Word Converter
create_word_from_markdownConvert markdown content to a formatted Word document. Supports headings, lists, tables, images, block quotes, page breaks, and inline formatting.
Instructions
Converts markdown content to a professionally formatted Word (.docx) document. Supports headings, lists, tables, images, block quotes, page breaks, horizontal lines, text alignment, and rich inline formatting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (shown in file properties) | |
| author | No | Document author name (shown in file properties) | |
| subject | No | Document subject/description (shown in file properties) | |
| file_name | No | Custom filename for the output file (without extension). If not provided, a unique identifier will be used. | |
| footer_text | No | Text for document footer (bottom of every page). Use {page} for auto page number, {pages} for total pages. | |
| header_text | No | Text for document header (top of every page). Use {page} for auto page number, {pages} for total pages. | |
| include_toc | No | If true, inserts a Table of Contents at the beginning of the document. The TOC updates automatically when opened in Word. | |
| markdown_content | Yes | Markdown content for the document body. Separate all block elements with blank lines. BLOCK ELEMENTS (each on its own line): - Headings: # H1, ## H2, ### H3, #### H4, ##### H5, ###### H6 - Unordered lists: - item (or * or +); nest with 3-space indent - Ordered lists: 1. item, 2. item; nest with 3-space indent - Tables: | H1 | H2 |\n|---|---|\n| C1 | C2 | (cells support inline formatting) - Block quotes: > text (supports inline formatting) - Page break: --- (three+ dashes alone on a line — starts new page) - Horizontal line: *** (three+ asterisks alone on a line — visual separator) - Images:  INLINE FORMATTING (usable in paragraphs, headings, lists, tables, quotes): - **bold**, *italic*, ***bold italic*** - ~~strikethrough~~, __underline__ (double underscore — NOT bold) - `code` (Courier New font) - [link text](https://url) - Nesting: **bold with *italic* inside**, *italic with **bold** inside* - Combinations: **~~bold strikethrough~~**, **__bold underline__**, *~~italic strikethrough~~* - Escaped literals: \* \** \` to render *, **, ` without formatting TEXT ALIGNMENT (HTML tags): - <center>text</center> or multi-line: <center>\nline1\nline2\n</center> - <div align="right|center|justify|left">text</div> (single or multi-line) LINE BREAKS: End a line with two trailing spaces for a soft break within the same paragraph. CONVENTIONS: - Do NOT confuse --- (page break) with *** (horizontal line). - Do NOT confuse __underline__ with bold; always use **bold** for bold. - LEGAL CONTRACTS: use numbered lists (1., 2., 3.) for clauses, nested lists for provisions; use headings only for the contract title. - Other documents: use headings (# ## ###) to organize sections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |