Skip to main content
To convert Markdown to Word with styles, send your text in content.markdown and describe the look in style (“Lora font, blue headings, with page numbers”) with format: "docx". Doconda lays the text out as is, applies the style to the Word styles (Normal, Heading 1…) and returns the editable .docx and its PDF.

Steps

  1. Create an API key in the dashboard, under API keys, and store it in DOCONDA_API_KEY.
  2. Install the SDK: pip install doconda or npm install @doconda/sdk.
  3. Call documents.create with your Markdown and the style, and download the Word file.
The Markdown supports headings, paragraphs, lists, tables, bold and italics, links, page breaks and images (![Caption](img:1) for the first image in sources).

What you get back

  • An editable .docx: the look lives in the document’s styles, so whatever you add later follows the same design.
  • Its PDF, with the font embedded (download(id, "pdf")).
  • style_applied: how the style was understood (font, colors, alignment…), so you can check it.
  • style_unsupported: whatever you asked for that couldn’t be applied. It is never silently ignored.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).

Limits

  • The text is used as is: Doconda doesn’t rewrite it. If you want it written for you, use prompt instead of content.
  • With quality: "fast" you get the basic style: font, size, colors, alignment, margins, cover page, table of contents, header and footer. Anything else comes back in style_unsupported.
  • Copying the design of one of your files needs standard or best.

FAQ

Any Google Fonts family, plus Calibri, Cambria, Arial, Times New Roman and Courier New. See Style.
Yes. It’s a POST https://api.eu.doconda.com/v1/documents with the same body. See the Quickstart.
Yes. With your Markdown Doconda only lays it out, so it is faster and cheaper. See pricing.
Yes, with format: "pdf".

Keep reading