# for headings, * or - for lists, ** for bold. It can be read as is or converted to
HTML and other formats.
Markdown is not one format but a family of flavors. CommonMark is its strict specification, and GitHub Flavored
Markdown (GFM) adds tables, task lists and strikethrough on top of it.
Why it matters for generated documents
- Models write it fluently. Markdown is common in their training data, so it is the natural output of a language model.
- It carries structure, not look. Headings, lists and tables survive; fonts and colors are applied later with styles.
- It is a good intermediate format. An application can write the content in Markdown and turn it into a Word document or a PDF.
- It works the other way too. Converting a PDF or a Word file to Markdown gives a model the content with its structure in fewer tokens than the raw file.
Markdown in Doconda
- To create: pass your text in
content.markdown(up to 500,000 characters). It supports headings, paragraphs, lists, tables, bold and italics, links, page breaks and images (for the first image insources). The text is used as is (Create). From Markdown costs €0.05 atfastand €0.20 atstandard, against €0.15 and €0.50 from aprompt. - To read:
POST /v1/convertwithto: "md"turns Word, PowerPoint, Excel, PDF, PNG or JPEG into Markdown, with no AI. Scanned PDFs and images are read with OCR, and Word tracked changes come out accepted. The text comes back in the response and nothing is kept (Convert).
Related
Convert a file
Any file to Markdown for your model.
Create a document
From your Markdown to Word, PowerPoint, Excel or PDF.
Word styles vs direct formatting
Where the look goes once the structure is set.
Structured output vs file output
Text for machines, files for people.