Skip to Content
Md2Docx logo Md2Docx

remarkDocx

Updated 10 Nov 2026

const remarkDocx: Plugin<[outputType?: OutputType, docxProps?: IDocxProps, sectionProps?: RemarkSectionProps, pluginProps?: Mdast2DocxPluginProps], Root>

Defined in: packages/remark-docx/src/index.ts:80

A unified compiler plugin to convert MDAST to DOCX output using mdast2docx.

Param

outputType

The output type for DOCX generation (e.g. "blob", "buffer", "base64"). Defaults to "blob".

Param

docxProps

Global DOCX document properties passed to toDocx. Optional.

Param

sectionProps

Section-level props including plugin overrides. Optional.

Param

pluginProps

Configurations for default plugins, or pass false to disable any default plugin.

Returns

A unified plugin that injects a DOCX compiler.

On this page