Pandoc is a general document converter that reads and writes dozens of formats, while DocPatch is a narrow API that moves Markdown documentation into Docusaurus, MkDocs or GitBook output. If you need Word, HTML, EPUB or PDF, use Pandoc. If your job is moving a docs folder between those three documentation frameworks, DocPatch is built for that one task.
What each tool is
Pandoc is free software that runs on your own machine from the command line. In the version we tested (Pandoc 3.10) it lists 51 input formats and 75 output formats, including GitHub-flavored Markdown, HTML, Word documents and EPUB, and PDF output. None of its output formats is Docusaurus, MkDocs or GitBook, because those are documentation frameworks that use ordinary Markdown files plus their own conventions, not file formats.
DocPatch is an API you call with your Markdown. It converts Markdown documentation into Docusaurus, MkDocs or GitBook output. The input is Markdown only; it does not accept HTML, PDF, Word, Confluence or Notion files, and it does not produce PDF or HTML output. You call it with an API key, and each conversion uses one credit from your quota.
What Pandoc does to a Markdown docs file
We ran a small docs page through Pandoc (pandoc in.md -f markdown -t gfm) to see what happens to the parts documentation teams care about. The page had front matter with title, permalink, layout and weight, a heading, bold and italic text, a relative link, a table, and nested headings.
- Front matter is dropped by default. Without
--standalonethe front matter block disappeared from the output entirely. - With
--standalonethe keys are kept but re-sorted. The block came back with its keys in alphabetical order (layout,permalink,title,weight). Thepermalinkfield stayedpermalink; Pandoc does not turn it into aslugfield or any other framework-specific field. - Content mostly survives, with small normalizations. The bold and italic text, the link and the table came through unchanged. Bullet markers written with
*came out as-, and a blank line was added after a heading that was directly followed by text.
None of this is a fault. Pandoc is converting between formats, and it does not know which documentation framework you are moving to. It is also the right tool when you do want a Word document, an HTML page or an EPUB from the same Markdown.