Skip to Content
Md2Docx logo Md2Docx

htmlPlugin

Updated 25 Oct 2026

const htmlPlugin: () => IPlugin

Defined in: index.ts:1001

HTML plugin for MDAST-to-DOCX conversion. Converts inline and block-level HTML content within markdown into structured MDAST nodes.

Supports <br>, <img>, <strong>, <em>, <table>, <ul>, <input>, and other inline tags. Should be used before image, table, or other content plugins in the pipeline.

Returns

IPlugin

Configured HTML plugin for MDAST parsing.

On this page