@mdast2docx/remark-docx
Version:
A unified plugin to prepare MDAST trees for DOCX conversion using mdast2docx.
2 lines (1 loc) • 886 B
JavaScript
;var e=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var g=(u,t)=>{for(var n in t)e(u,n,{get:t[n],enumerable:!0})},c=(u,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of P(t))!s.call(u,i)&&i!==n&&e(u,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return u};var f=u=>c(e({},"__esModule",{value:!0}),u);var d={};g(d,{remarkDocx:()=>a});module.exports=f(d);var m=require("mdast2docx"),o=require("mdast2docx/dist/plugins"),p=[(0,o.htmlPlugin)(),(0,o.mermaidPlugin)(),(0,o.tablePlugin)(),(0,o.listPlugin)(),(0,o.mathPlugin)(),(0,o.emojiPlugin)(),(0,o.imagePlugin)()],a=function(t="blob",n={},r={}){return this.compiler=function(i){return r.plugins||(r.plugins=typeof window=="undefined"?p.slice(2,-1):p),(0,m.toDocx)(i,n,r,t)},i=>i};0&&(module.exports={remarkDocx});