UNPKG

@m2d/html

Version:

Extend MDAST by parsing embedded HTML in Markdown. Converts HTML into structured MDAST nodes compatible with @m2d/core for DOCX generation.

12 lines (11 loc) 478 B
import { IPlugin } from "@m2d/core"; /** * 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 Configured HTML plugin for MDAST parsing. */ export declare const htmlPlugin: () => IPlugin;