typedoc-plugin-markdown is a TypeDoc plugin that converts TypeScript API documentation into Markdown, making it compatible with static site generators like Docusaurus, VitePress, or GitHub Wikis. The current stable version, 4.11.0, reflects an active development approach with frequent minor and patch releases, ensuring ongoing enhancements and bug fixes. Its core function is to replace TypeDoc's default HTML theme with a built-in Markdown theme, offering extensive configuration options for various Markdown dialects and output structures. This plugin differentiates itself by providing fine-grained control over markdown generation, including custom routers for file organization, support for Prettier formatting, and options for dynamic content like navigation JSON. It is an essential tool for projects requiring documentation in a portable, text-based format.
npm install typedoc-plugin-markdownVerified import paths — ran on the pinned version, not inferred.
Installs TypeDoc and the markdown plugin, configures TypeDoc via `typedoc.json` to process a sample TypeScript file, and generates Markdown API documentation into a specified output directory.
Always install the `typedoc` version specified in the plugin's `peerDependencies` (e.g., `npm install typedoc@0.28.x --save-dev`). If you encounter 'TypeDoc has been loaded multiple times' warnings, consider using `npm install --legacy-peer-deps` or investigating your dependency tree.
Ensure all `typedoc-plugin-markdown` options are directly defined as top-level properties within your `typedoc.json` file.
Upgrade to `typedoc-plugin-markdown@4.11.0` or newer to benefit from improved Markdown output quality, better handling of complex types, and fixes for link generation issues.
Ensure your custom plugin files use `.mjs` extension or configure `package.json` to treat `.js` files as ESM (e.g., `"type": "module"`), and use `import`/`export` syntax.
Run `npm install typedoc typedoc-plugin-markdown --save-dev` to ensure the package is installed. Verify `typedoc-plugin-markdown` is correctly listed in your `typedoc.json` `plugins` array.
Check the `peerDependencies` of `typedoc-plugin-markdown` and install the exact `typedoc@0.28.x` version required (e.g., `npm install typedoc@0.28.x --save-dev`).
Update to `typedoc-plugin-markdown@4.11.0` or newer, which includes improved rendering for union types and function returns. Ensure your `tsconfig.json` used by TypeDoc correctly includes all relevant source files for complete type resolution.
Upgrade to `typedoc-plugin-markdown@4.10.0` or newer, as this version specifically includes fixes for common markdownlint errors related to tables and link fragments.