UNPKG

remark-docx

Version:

remark plugin to compile markdown to docx (Microsoft Word, Office Open XML).

11 lines (10 loc) 386 B
import { fromHtml as e } from "hast-util-from-html"; import { toMdast as t } from "hast-util-to-mdast"; //#region src/plugins/html/index.ts var n = () => async () => ({ html: ({ value: n }, r) => { let i = t(e(n, { fragment: !0 }), { nodeHandlers: { comment: () => {} } }); return r.render(i.children); } }); //#endregion export { n as htmlPlugin }; //# sourceMappingURL=index.js.map